How to Write Your First C++ Program Using Dev-C++

We have already downloaded Dev-C++. This article explains how to write your first C++ program using Dev-C++.

Click the "New" icon on the left side with your mouse

20251201_53hg.png

After clicking, select "Source File".

20251202_64h.png

Then, we write the following code in it.

3

#include<iostream>
using namespace std;
int main(){
	cout<<"hello world";
	return 0;
}

Then click the "Compile" option. If the program hasn't been saved yet, you need to save it first.

20251203_6y3h.png

After compilation, the following content will be displayed.

20251204_63hhb.png

Then click the "Run" option.

20251205_64jh.png

At this point, you can see that the program has run successfully.

20251207_8jg.png

Subscribe to CodeEachDay

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe