0
I wrote "Hello World " code in code blocks... then I press F9. Then It shows error massage...
Error indicator (a red box ) indicate first line #include <iostream> why???
9 Respostas
+ 2
write ur program once here
+ 1
did u include namespace std; ?
+ 1
yes...
using namespace std;
+ 1
if code blocks gave an error at the writing namespace std is irrelevant. what did the debug window say your error was
+ 1
ur code is good with no errors try compiling by removing return 0;
+ 1
main() should have no spaces.
0
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello world";
return 0;
}
0
what was the error that code blocks gave you
0
#include <iostream>
void main()
{
cout<"Hi to the world";
return 0;
getch();
}