For me, it really depends on how lazy I'm feeling at the time. Normally I'll use the std:: prefix. Of course, the 'using namespace std' statement kind of defeats the purpose of even having...
Type: Posts; User: Mr.OC
For me, it really depends on how lazy I'm feeling at the time. Normally I'll use the std:: prefix. Of course, the 'using namespace std' statement kind of defeats the purpose of even having...
Try this; http://www.winprog.org/tutorial/apivsmfc.html
That explains well enough what the differences are. Hope it helps.
:)
In that case, I'll take a stab at it. :p
The code in a function is copied into memory, and that copy is used when the function is called (throughout the entire life of the program). This is good...
You left out the semi-colon (';') after the function prototype.
Replace this...
void check(double a, double b)
With this...
void check(double a, double b);
That, and your call to cout.
Here, try this. It should work for you.
#include <iostream>
using namespace std;
//Function prototypes...
void NewGame();
void Online();
Just to clarify; std::string isn't a 'real' C++ data type. It's part of a Class. That's why it didn't turn blue, like char or int would.
That's good that you got it working, though. :)