Get Starting With C++
C++ Get Satrted
In order to write C++ programs from scratch scratch we have required the following softwares (Tools)
-
Text Editor
-
GCC (Compiler)
The above mentioned tools are most commonly available in a single software called IDE. An IDE provides the faility of writing, compilation and execution facility.
Install Dev C++ IDE
There are many popular IDE's (Integrated Development Environment) used for writing C++ programs. We will use Dev-C++ for learning how to program in this tutorial. We can download it free from here https://sourceforge.net/projects/orwelldevcpp
Start With Dev-C++
Now we are going to create our first C++ project. The given steps are followed to create a project using Dev C++ IDE.
-
Run Dev-C++
-
Go To File > New > Project
This Project window will appear. From here we have to select
Console Application
Select C++ Project
Write Project Name (By default it is Project1)
Click Ok
By Default this project will contains the following C++ source code
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
return 0;
}
After this Use the following Menu to Compile and Execute source code.
Execute > Compile & Run
The following output will appear.