Tuesday, November 8, 2011

compiling and executing a dev c++ application

Comments
OLD IS GOLD :P
Dev-C++ is a free programming environment. To get it, you can download it fromhttp://www.bloodshed.net. If you decide to use it, you should help the developers with a financial contribution.
Start Dev-C++ 4


On the main menu, click File -> New Project...
On the New Project dialog box, click the Project property sheet if necessary.
Click Console Application


Click OK.
On the subsequent New Project dialog box, type Exercise to change the name of the project:


Click OK. You will be asked to create a location for the project.
Click the Create New Folder button .
Type Exercise1 and press Enter.
Double-click Exercise1 to display it in the Save In combo box:


Click Save.
Because the project has already been saved, it is better to save your C++ files as you go. As it happens, Dev-C++ has already created the first C++ file for you.
Change the contents of the file as follows:

#include #include int main(int argc, char *argv[]) { cout << "C++ is Fun!!!"; getchar(); return 0; }



To save the current C++ file, on the Main toolbar, click the Save button
Type Exo as the name of the file.
Click Save.
To execute the program, on the main menu, click Execute -> Compile


After the program has been compiled, click Execute.
After viewing the program, press Enter to close the DOS window to return to Dev-C++

Borland C++BuilderX




Borland C++BuilderX is a commercial programming environment developed by Borland.
To help programmers, Borland published a free version, called Personal Edition, that you
can download and use for your lessons.

On the main menu of C++BuilderX, click File -> New...
In the Object Gallery dialog box, click New Console


Click OK
In the New Console Application - Step 1 of 3, enter the name of the new application
in the Name edit box. In this case, you can type Exercise1


Click Next


In the New Console Application Wizard - Step 2 of 3, accept all defaults and click Next
In the New Console Application Wizard - Step 3 of 3, click the check box under Create
Click Untitled1 and delete it to replace it with Exercise


Click Finish
In the Project Content frame, double-click Exercise.cpp to display it in the right frame


To execute the application, on the main menu, click Run -> Run Project
FEEL FREE TO COMMENT


Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...