#include <iostream.h>
int main()
{
cout << "Hello there.\n";
cout << "Here is 5:" << 5 << "\n";
cout << "The manipulator endl writes a new line to the screen\n";
endl;
cout << "Here is a big number:" << "70000\n";
return 0;
}
I get this message:
error: statement cannot resolve adress of overloaded function
I am sure the problem is with "endl" function, since when I remove it, it works just fine.
I have tried to change from "\t" to "\n", altough I don't know if there is a difference, I have googled the error, and I have tried to use the insertion operator (<<) instead of using ";" before "endl".
Thanks in advance,
wkwkwkwk1
By the way, I am using Code::Blocks

New Topic/Question
Reply


MultiQuote



|