Code::Blocks Installation

Code::Blocks Testing
(i.e. Verifying the Installation is good)

Step 1: Starting Code::Blocks
Details:
NOTE: If you chose to start CodeBlocks automatically when you installed it, and
CodeBlocks is open, start with #3 below.
1) Click the Start button.
2) Choose All Programs then CodeBlocks then CodeBlocks again, to start Code::Blocks.
3) The first time you run Code:: Blocks, it will display a compiler auto-dectection screen.
If you correctly installed MinGW and modified your PATH variable, then the bottom of the
screen should display:
"Default compiler: GNU GCC Compiler"
Click the OK button to accept the default compiler.
4) A "Tip of the Day" box will be displayed.
If you do not want to see tips each time you start Code::Blocks, uncheck the "Show Tips at
Startup" box. Then click on the Close button.
5) The first time you run Code:: Blocks, it will display a File Associations box.
The default is "Yes, associate Code::Blocks with C/C++ file types".
Leave the default selection as is, and click the OK button.
6) You can also close the Scripting Console box for now, by clicking on the X.
7) Your initial Code::Blocks screen should look like this:

Step 2: Testing Code::Blocks by building a "Hello World" program
Details:
1) Create a New Project for the Program
a) Under the CS361programs directory you created previously,
create a new folder named "HelloWorld".
b) From the top menu, choose File | New | Project
OR click on the "Create New Project" link on your screen
OR click on the "New File" icon,
and choose "Project"
c) In the "New from template" window, click on "Console Application" to select it,
and then click the "Go" button.
d) The Console Application wizard will appear. Click Next.
e) In the language selection box, click on C++ to select it, then click Next.
f) In the "Project Title" box, type: HelloWorld
(Note that the Wizard fills in the Project Filename for you, using the project title.)
g) In the "Folder to create project in:" box, select the "CS361programs\HelloWorld" folder
that you created and then click the OK button.
(Note that the Wizard fills in the Resulting Filename for you, using the folder you selected.)
Click the Next button.
h) The Configurations screen will appear. Click Finish to accept the default settings.
Your new project will appear in the Code::Blocks IDE.
2) View the project code
a) Click on the plus (+) next to "Sources" in the left pane.
b) Double click on "main.cpp".
Note that "Hello World" source code is the default code for all C++ projects.
3) Compile and run the code.
a) To compile, from the top menu, choose Build | Build
OR click on the Build icon
If the build (compile and link) is successful, in the Build Log you will see the message:
Process terminated with status 0
0 errors, 0 warnings
b) To run, from the top menu, choose Build | Run
OR click on the Run icon
c) A console screen will display the program results.
If you see this display, you have successfully compiled and run your first program!
NOTE: You could also choose to Build and Run all at once,
To do so, from the top menu, choose Build | Build and Run
OR click on the Build and Run icon