Home > Common Problem > How to use vc6.0

How to use vc6.0

angryTom
Release: 2019-07-26 09:15:08
Original
85175 people have browsed it

How to use vc6.0

Recommended tutorial: FAQ

1, Open VC 6.0, press "File" --> "New" in the menu bar in the upper left corner to open the following interface

How to use vc6.0

2. The list on the left Select "Win32 Console Application", which is the win32 console project. The console is similar to the cmd window in windows. Just start programming and select to create this project. Enter the project name on the right, I enter "FirstProgram" here, and select a folder to store the project. If it is not placed in the default path, click the button that says "..." on the right, and then automatically Define the selection path. The path I chose is F:\Cpp.

3. Then click OK, select "An Empty Project" in the dialog box that appears next, click Finish, and click " Sure".

4. At this time, an empty project is created, and our source code files will be included in this project. We now start to create the source code file. Click "File" in the upper left corner of the software-->"New", and then the dialog box we just saw will appear. First select "File" in the tab above, Then select "C Source File" in the list below, enter hello.cpp as the file name, and click "OK".

5. After confirmation, the blank hello.cpp file will automatically open in the editing area on the right, and the organizational structure of the entire project can also be seen in the work area on the left.

6. Next We write a simple program to display "hello world!" on the screen. The most classic program is

#include<iostream>
using namespace std;
int main()
{
cout<<"hello world!\n";
return 0;
}
Copy after login

7. Then press the button above the editing area to compile and link, and then execute , as shown in the figure below

How to use vc6.0

8. The execution result is as shown in the figure below, a small program we wrote in vc 6.0 was executed successfully

How to use vc6.0

The above is the detailed content of How to use vc6.0. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template