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
- Start the application either using the shortcut icon on the desktop or through the Start menu using all programs.
- Select and click on File
- Click on New
- Choose and click on “Console application”
- Click on the next button
- Assign a name to your project
- Select your preferred language, e.g C++ and compiler
- Choose your project location
- Click on the next button
- Click on the Finish button to complete the process
- Click on File
- Click on the New button
- Click on the source file to create a new C++ source file
- 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.
About Author
Discover more from SURFCLOUD TECHNOLOGY
Subscribe to get the latest posts sent to your email.