BUILD AN NEW C PROJECT AND PROGRAM - Code::Blocks and MinGW

(Note: + precedes a selection or action you need to take.)

Log into a windows machine in the classroom or lab

Start Code::Blocks

+ Start button + All Programs + CodeBlocks + CodeBlocks
+ OK in File associations

Settings

+ Select the menu item: Settings + Editor
+ Next to the text This is sample text select: choose
+ Select font size: 12 + OK + OK
+ Select the menu item: Settings + Editor
+ Change the tab size to 2 + OK

Create the program source file

+ In the menu, select - File   - New   - Empty File
If the wizard runs:

Type the program and save it

+ Type the heading comment and your program
+ Select the save icon

Build and run the program

+ Select the menu item: Build + Build and Run
+ In the execution window, press any key to close the window
+ Correct any errors
+ Save + Build and Run again

Save the results

When you have tested your results several times successfully, run your program with the test data specified by the instructor to get the final results.

In the exeution results window: + Select the C:\ icon in the top left + Edit + Select all
+ Select the C:\ icon in the top left + Edit + Copy
At the end of your program, paste the results in a comment:

/* Execution results
+ right click here + Edit + paste
*/

+ Select the save icon

Print your program and turn it in