|
From: Jay S. <mys...@op...> - 2001-07-21 14:26:08
|
You need to read a basic manual.
#include <iostream.h>
#include <stdlib.h>
int main()
{
int x = 5;
int y = 7;
cout<< "\n";
cout << x +y<< " " << x*y;
cout <<"\n";
system("PAUSE");
return 0;
}
Is what you want to use. You left the <<'s off the first and third cout statements, and in the second cout statement you want to use a << before the " " as well.
Techneaux
----- Original Message -----
From: Jarred
To: dev...@li...
Sent: Saturday, July 21, 2001 10:19 AM
Subject: [Dev-C++] why wont this compile
I'm just trying to learn this stuff and for some reason this code won't
compile. It is ment to be c++. I wood appreciate any answers or help. Below
is the complete code.
#include <iostream.h>
#include <stdlib.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y " " << x*y;
cout "\n";
system("PAUSE");
return 0;
}
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|