Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c++ programming

Name: Anonymous 2013-05-17 22:47

any programmers here?

I just need some real quick help, this is my third assignment of my 100 level programming course (c++), and I have an array of integers with 5 places.

One question asks me to find:
"The sum of the five values if at least three of the values are the same, otherwise 0"

Is there some easy way of doing this without doing
if (value[0] = value[1] & value[0] = 2 || value[1] = value[2]) etc?

I'm stuck as hell on this question any help would be great

(im using g++ compiler if it makes a difference)

Name: Anonymous 2013-05-18 14:22

0/10

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List