softwareguy74
Nov 16th, 2000, 11:03 AM
Hi,
I'm trying to learn VC++ and found an example excersice but it doesn't seem to work. Here is the code:
#include <iostream.h>
int main();
{
int x=5;
int y=7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
I get the following error when trying to compile the above .cpp file:
"error C2447: missing function header (old-style formal list?)"
Any ideas what this is and how to fix it?
Any help would be appreciated..
Dan
I'm trying to learn VC++ and found an example excersice but it doesn't seem to work. Here is the code:
#include <iostream.h>
int main();
{
int x=5;
int y=7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
I get the following error when trying to compile the above .cpp file:
"error C2447: missing function header (old-style formal list?)"
Any ideas what this is and how to fix it?
Any help would be appreciated..
Dan