OMG can some please help?

This is a discussion on OMG can some please help? within the C++ Programming forums, part of the General Programming Boards category; My code wont work even though it looks like it should.
Could some one please help me?
I'm learning some ...

What do you mean it won't work? Also, what compiler? I used Dev-C++ 4.9.8.0 and it worked fine. But, you should add some line breaks so you can tell the answers apart (unless there's a reason for that). Also, what is the point of answer? You can just use:

Note you can still use using namespace std; system( "PAUSE" ); and answer (although it doesn't need to be global). Also, you can, in the std::cin statement, using the comma instead of an additional >>. You should also probably put a prompt, as it makes more sense.

>The code works fine but it displays the wrong answers.
It was because you added no whitespace between the functions, therefore you saw one big string of numbers, instead of numbers seperated by whitespace.

Maybe, I guess, most likely, I don't do C.
It just that when the function is called within the main, the compiler need to check if the parameters match. That's way if you define the function after the main(), the prototype is required before main().

Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie