First Code Using CODE::BLOCK

CODE::BLOCK is one of the applications that helps all users run a piece of code after building and gathering. CODE::BLOCK is made known internationally by many and lots of programmers who have command over the entire application.

How to launch CODE::BLOCK

  1. Start the application either using the shortcut icon on the desktop or through the Start menu using all programs.
  2. Select and click on File
  3. Click on New
  4. Choose and click on “Console application”
  5. Click on the next button
  6. Assign a name to your project
  7. Select your preferred language, e.g C++ and compiler
  8. Choose your project location
  9. Click on the next button
  10. Click on the Finish button to complete the process
  11. Click on File
  12. Click on the New button
  13. Click on the source file to create a new C++ source file
  14. Now write a program as shown below:

1 #include <iostream>

2

3 int main() {

4        std::court << “Hello, World!” << std::endl;

5        return 0;

6 }

To build and run your first program:

  • Go to build and click on it or
  • click on Build and Run

If the build is successful, the output “Hello World” will be displayed in the “Terminal” tab at the bottom of the screen on your computer.

Meanwhile, ensure to download and install the aforementioned application before use.

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading