What error are you getting when you try to compile in Dev-C++? It's always worked fine for me.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
When you have int main() it means that the function main() is returning a value of type int (an integer). Right after your cout statement you have to add a return (0); statement.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
And yes, use iostream.h ... Sometimes Windows likes #include instead of iostream.h though!
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Really? Hmm... what version of Dev-C++ are you using? The following works for me on Dev-C++ 4.0:
#include <iostream.h>
int main() {
cout << "Hello World From About\n";
return 0;
}
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
What do you mean by the latest version? The beta version? 5? I'm using 4 and the code I posted with "" works and has always worked for me.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18