I get 31 errors from the following code:
I'm using Dev-C++ 4Code:#include <iostream> using namespace std; int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!\n"; cin.get(); }
Thanks
Ninko
I get 31 errors from the following code:
I'm using Dev-C++ 4Code:#include <iostream> using namespace std; int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!\n"; cin.get(); }
Thanks
Ninko
Could you post the errors ? This code is perfectly fine and should compile. My only guess is that you have created a C project instead of a C++ one. Create a new project and check if the "C Language" or "C++ Language" is checked.
the code looks fine. did you make a 'C++' project or a C one? if you made a C++ and your getting errors, what are they?
Dev C++??? Can we see some of these errors? That code should compile.
edit: Beat me too it.