Friday, May 27, 2011

HelloWorld using Dev-C++

To create the first "HelloWorld" using Dev-C++:

Click File -> New Project to create a new C++ project using template of Console Application, with name of HelloWorld.
Create a New Project...

Select your target folder when you are asked to do so.

A dummy code will be generate with the code:
system("PAUSE");
return EXIT_SUCCESS;

auto generated code

Just keep it as is. It's used to keep the console window not to close after your application close, such that you can see you output.

Add one line of code to finished your first "Hello World".
cout << "Hello World\n"; insert code

Save your file.

Click Execute -> Compile & Run.
HelloWorld using Dev-C++

No comments:

Post a Comment