Error Message - Expected ; Before String Constant

Hello,

I am learning C++ and I tried entering a code from a book into my compiler. Here it is:


#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
system("pause");
return 0;
}


The problem is that I can't seem to get rid of this error that I keep on receiving, "expected `;' before string constant ". Does anyone know why I am receiving it or how to possibly fix it? I've tried a few different things but nothing seems to work. Any help at all would be greatly appreciated. Thank you in advance!
Do not forget to use the << operator with ALL of your cout's.

~psault
Oh, wow, you are a life saver, psault! My head has turned into a complete marshmallow at this point. Thank you so much. I really, really appreciate your help :).
Topic archived. No new replies allowed.