im sure this is a noob question here, so sorry about that. and i have searched the web and tried figuring out this out but i cant seem to find anything although im sure that is just a simple mistake or something.
But anyways im trying to make my IDE run the statment below.
int x;
x = 5;
cout << x;
but my results are always:
error: "x" does not name a type
error: 'cout' does not name a type
is there something i need to add? is it just invalid? or what can i do to fix this. thanx