another one for you...
this is the code i get from a tutorial website:
Code:
#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
this hasnt a hope of workign on my pc... im not sure if this is because of the compiler or not...
but if i put this :
Code:
#include <iostream>
int main()
{
int x = 5;
int y = 7;
std::cout "\n";
std::cout << x + y << " " << x * y;
std::cout "\n";
return 0;
}
it nearly works...apart from compiler says it expects ; before string constant..... i dont no where to go now.....
khris