Hello everyone, I'm new to this board and new to C++ but I have a question about a program I've run into in Sams Teach Yourself C++ in 21 Days. I've written it correctly and when I tried to compile it I got errors (I'm not supposed to get any with this piece) and since I'm new to this, I can't exactly figure out what the problem is. Here it is, tell me what you think:
Simplicity at it's best :) But I figured it's worth a try...these are the errors I get:Code:#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
Line 7: error C2143: syntax error : missing ';' before 'string'
Line 9: error C2143: syntax error : missing ';' before 'string'
Thanks
PS - Sorry to those of you that see this as a waste of your time.