[Dev-C++] RE: why wont this compile (Jarred)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mark B. <al...@bi...> - 2001-07-22 01:35:05
|
Jarred,
cout requires the << before every argument as below.
#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;
}
Regards,
Mark Ballard
ma...@du...
|