TUTORIAL: How to create new C/C++ Project in CodeBlocks?

CodeBlocks can be used to write C/C++ program. If you do not have CodeBlocks installed in your computer, you can refer to my tutorial to download it (click here to read) . If you have installed CodeBlocks, you can go through this tutorial to create project. There are two ways to create project. You can choose which ways that suit you. However, before that, you have to run CodeBlocks.

*CodeBlocks 17.12 release is used for this tutorial.

First way: Suitable for beginner because the template is given.

1. Click Create a new Project.


2. Choose Console Application and click Go.


3. Click Next.

4. Select the programming language to be used (C/C++) and click Next. In this tutorial, C++ is selected.

5. Fill in Project Title and Folder to create project in (you can browse). Project filename and Resulting filename are autofilled after you chose the folder. Then, click Next and Finish.


6. Click Project Title (in this tutorial, it is Test), Sources and main.cpp.  After that, you can see the template for a C++ Program.




Second way: 

1.  Click File which is located at the top left corner. Then, click New and Empty File.



2. There is no given template and you need to start from scratch.

3. Click File and Save file as.

4. Fill in File name (filename.extension). Project1.cpp is an example of a C++ program. Then, click Save.

Comments