Sie sind auf Seite 1von 6

STEP-BY-STEP PROCEDURE FOR CREATING A NEW PROJECT IN VISUAL

C++ EXPRESS 2010

Step 1. Run the Visual C++ Express 2010 program by double


clicking the Visual C++ Express 2010 icon on the Desktop.

Step 2. Do File → New → Project

Step 3. Select Empty Project and type a name for the project. When you
enter a name in the Name field, the same name will automatically appear in the
Solution name field. Then click OK.

1
Step 4. This screen then appears.

Step 5 Do Project → Add New Item

2
Step 6. The following screen now appears. Select C++ File (.cpp), type a
name (test1 here) in the Name field, and then click Add. Most of the time the
name “main” is used representing the “main” program.

Step 7. The following screen next appears, with the blinking cursor in the
text editor space. Start typing your code at the blinking cursor.

3
Step 8. A simple code is entered and then captured in the screen below.
The statement
getchar();
is inserted in order to stop the console output from disappearing within half a
second or so after the program is compiled or built and then run. This problem
is not present in Microsoft Visual C++ Express 2008.

Step 9. To build and then run the program simply do debug → Start
without debugging.

4
Step 10: When one does Debug → Start without debugging, you are told
that the project is out of date, and you are asked if you would like to build it.
Click yes, then the status of the output is declared as “1 succeeded”, and
thereafter immediately the console output screen pops up.

5
You may finally want to resize the output screen as below to improve clarity:

NOTE:
1) The above steps are probably the shortest approach to coding and
then building and running the compiled .exe program. It might be
noted that some minor variants of the steps do exist.
2) Try the code without the
getchar();
statement. You will find that the console output screen pops up
momentarily upon building and running the code, and then
disappears. How annoying that we have to use a workaround to
stop the output screen from disappearing! This problem does not happen
with Microsoft Visual C++ Express 2008. For the purpose of the
ESE124 course, you may use any version of the Visual C++
program.

Das könnte Ihnen auch gefallen