How to use Code Blocks to write C, C++ programs

Because Code Blocks is software that has the function of creating other software and games, how to use it will be a bit difficult. Therefore, you can refer to how to use Code Blocks in TipsMake's article below.

 How to use Code Blocks

1. How to create a C program in Code Blocks

Step 1: Open Code Blocks IDE, then access the path: File => New => File.

How to use Code Blocks to write C, C++ programs Picture 1

Step 2: When the New form template window appears, select C/C++ source and select Go.

How to use Code Blocks to write C, C++ programs Picture 2

Step 3: At this time, a welcome window will appear on the screen, where you click Next .

Also, in case you do not want the window to display next time, check the box next to the Skip this page next time option .

How to use Code Blocks to write C, C++ programs Picture 3

Step 4: In this step, you can choose C or C++ as the programming language.

How to use Code Blocks to write C, C++ programs Picture 4

Step 5 : Name the file, and select a folder and location to save the file, then click Finish.

How to use Code Blocks to write C, C++ programs Picture 5

Step 6: After writing a program, you can use the combination Ctrl + S to save the program.

Besides, to consolidate your knowledge and self-study code, readers can refer to the top best programming learning websites here to practice your skills.

2. How to compile programs in Code Blocks

After you have created the C program, the next step you need to do is compile and run the program.

To compile and run a C program, find and click Build => Build and run or use the shortcut F9.

How to use Code Blocks to write C, C++ programs Picture 6

In case if the program has any errors or problems. Error messages will be displayed in the Build messages tab below the code editor.


The article above TipsMake has shown you how to use the most basic Code Blocks. If you have any questions, please leave a comment below.

5 ★ | 1 Vote

May be interested

  • What is AWS? What is AWS Certification used for?Photo of What is AWS? What is AWS Certification used for?
    aws certification can enhance career profiles and earnings, while increasing the holder's credibility and confidence when interacting with stakeholders and customers. let's find out with tipsmake what aws is? what is aws certification used for? in the following article.
  • What is an SSL certificate? How does it affect your website?Photo of What is an SSL certificate? How does it affect your website?
    what is an ssl certificate? how does it affect your website? is an issue that many users are interested in and learn about. this certificate is considered a very important factor related to internet security.
  • Find out what is HTTPS? Why should you use HTTPS instead of HTTP?Photo of Find out what is HTTPS? Why should you use HTTPS instead of HTTP?
    the question 'what is https? why should we use https instead of htpp?' many people are learning and paying attention today. http or https is the starting element in the website url. understanding this, tipsmake will answer in the following article.
  • Learn the Benefits of Bandicam, the best video recording and screen capture softwarePhoto of Learn the Benefits of Bandicam, the best video recording and screen capture software
    if you want to record screen, record audio, record high quality video with sharp images, you should download bandicam to get the best experience of the software. below is how to use bandicam on computers that many people use but few people know what its benefits are. please refer to it for more information.
  • Difference between Internet and WebPhoto of Difference between Internet and Web
    what are the similarities and differences between the internet and the web? for those who understand information technology, these two concepts are no longer strange, but for those who are just starting to learn, they may not clearly understand the concept as well. their effects, the content below, taimienphi will show you the difference between the internet and the web.
  • What is the culprit consuming your bandwidth?Photo of What is the culprit consuming your bandwidth?
    there are many reasons that reduce your computer's ability to connect to the internet. it could be due to a certain user or devices on the network, or even due to malicious applications or services running on the computer. so how to detect who is the culprit consuming your bandwidth?