120 likes | 350 Views
컴퓨터의 기초 MS Visual C++ Tutorial. 2006. 3. 13 MASSLAB 김진철. Overview. How to use C/C++ compiler Creating a new visual C++ 6.0 project Creating a new program in an existing project Compiling and running your project Opening an existing project in your workspace Q&A.
E N D
컴퓨터의 기초MS Visual C++ Tutorial 2006. 3. 13 MASSLAB 김진철
Overview • How to use C/C++ compiler • Creating a new visual C++ 6.0 project • Creating a new program in an existing project • Compiling and running your project • Opening an existing project in your workspace • Q&A * Visual Studio C++ 6.0 is used in the slide. Currently Visual Studio .Net is available.
Creating a new visual C++ 6.0 project Choose File/New
Creating a new visual C++ 6.0 project 1. Select Projects tab Enter the name of your project. Select the directory in which you want your project created. This should be selected. The platform should be Win32 2. Select Win32 Console Application
Creating a new visual C++ 6.0 project Choose Empty Project.
Creating a new program in an existing project Choose File/New
Creating a new program in an existing project 1. Select Files tab Be sure the proejct nameis the name of the current project. Enter the name of your source file. Note :In this class, file extension should be declared a "c" Be sure the saving location is correct. Choose C++ Source File
Creating a new program in an existing project Enter your C source code into this window When you are finished writing your code, choose : File/Save
Compiling and running your project choose : Build/Build xxx Or Build/Rebuild All
Compiling and running your project If it compiles and links successfully, the window at the bottom of your screen will display 0 error(s), 0 warning(s)
Compiling and running your project The following output window should be displayed. When I press any key, the window will be taken down and the program will stop. Choose : Build/Execute CTestProject1.exe
Opening an existing project in your workspace Find your old workspace. “CTestProject1" folder, and then double clicking on the “CTestProject1.dsw" file