[C++ Learning Road] A visual studio download and install configuration, the first C++ code

I have been wanting to learn C++ for a long time, but have no time. Let's get started with a little time in the near future.

Using visual studio 2015 as a development tool, the download address for bloggers is as follows, just download the community version:

http://news.mydrivers.com/1/439/439398.htm

After the installation is complete, open it and select visual c++.


Create a new C++ project:

Click the toolbar file - new - project - win32 console program in turn, you can modify the project name. Click OK


Edit the code in the code editing area that appears on the right!


// HelloC++.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include  <stdlib.h>
using namespace std;

intmain()
{
	cout << "hello c++\n";//Output hello c++ and newline to the console
	system("PAUSE "); //Pause the console
    return 0;
}



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325630098&siteId=291194637