Created on: 3/20/05 LESSON 0-b: CREATING AND COMPILING A PROGRAM If you are using Microsoft Visual Studio .NET 2003: 1.) Open Microsoft Visual Studio .NET 2003 2.) After it finishes loading, open the "File" menu 3.) In the drop-down menu, open the first selection with an arrow: ___________________ |New ->| |... | 4.) Select Project in this new sub-menu. 5.) In the new window, expand the "Visual C++ Projects" folder found in the left section by clicking on the '+' sign in front of it. 6.) Click on the Win32 folder that is 'under' the Visual C++ Projects folder 7.) In the right section, click on "Win32 Console Project" 8.) Change the Name and Location fields below the 2 sections to whatever you want, depending on what you want your project to be named, and where you want your files to be saved. 9.) In the new window that appears (the wizard), click the "Application Settings" text on the left. 10.) Under additional options, select "Empty Project", and make sure that under "Application Type" that "Console application" is selected. 11.) Click the "Finish" button. Now that we are done creating the project, we can add files to our project: 12.) Open the "File" menu from the menu bar at the top. 13.) In the drop-down menu, select one of 2 options: "Add new item" "Add existing item" 14.) If you have already written some code and want to add it to your project, select "Add existing item", if you want to create a new file, select "Add new item" 15.) If you selected "Add existing item", you should be able to figure out how to find your program to add - it's the same with every other program written for Windows. 16.) If you selected "Add new item" select "C++ File (cpp)" (the other file of interest is the "Header File (.h)"). 17.) Alter the Name and Location fields as you see fit, though I would suggest to keep the location field as the default location. 18.) Click on the "Open" button. Congratulations, you are now ready to code. TO COMPILE, push F7, or alternatively: 1.) Click the "Build" menu on the menu bar 2.) Select "Build Solution" (A solution is a group of projects, not necessarily of the same type.) 3.) On the bottom of the screen, the compiler will give you a list of errors that it ran into. TO RUN A PROGRAM: 1.) compile your program. 2.) Click the "Debug" menu on the menu bar 3.) Select either "Start" or "Start without debugging". 4.) If your program is a legal C++ program (no errors), then your program will run! GCC: This is on my To-Do-list