Under “Location” click the ellipses (…) to select the
folder in which you are storing your programs
Under “Project Name” type the name for the project
(i.e. Ch2_17 for Chapter 2, program 17) – this will create a directory
(folder) underneath your programming folder to store all the files
associated with the project
Make sure the bullet “Create new workspace” is
selected (not “add to current workspace”)
Click “OK” to create the project
Make sure “an empty project” is selected, and click
“Finish”
Click “OK” to close the information message
Once your project has been created, we can create the
actual file that will contain your program (for now we will only have one file
containing code for each project)
Under the pull down menus select “File -> New…”
Make sure you are under the “Files” Tab
Highlight “C++ Source File”
Type in the file name (i.e. Ch2_17)
Make sure the “Add to Project” box is checked
The file will automatically be placed in your project
directory that you just created, so click “OK”
Note that the file was given an extension of *.cpp
(i.e. Ch2_17.cpp)
Enter the basic framework that you will use in every
program
#include <iostream.h>
// Jonathan Rees // Program Ch2_17
void main ()
{ // You're ready to start entering code then...
}
Emailing Mr. Rees a finished program
Open up Microsoft Outlook
Open up a new message and put in the subject line the
assignment you are sending me: “C++ programming CH2_17” or something similar
Select “Insert -> File”
Select the *.cpp file (the file that contains your code)
and click “Insert”