What IDE does code that writes C + + use?
- Windows users: Clion or VS2017, about clion and other software crack Please enter: http://blog.51cto.com/xvjunjie/2096647, about VS2017 Enterprise Edition and Professional version of the activation key Please enter: http:/ /blog.51cto.com/xvjunjie/2142025
- Linux users: Clion or Vim,emacs is also a good choice
- Mac OS x users can use Xcode, VS for Mac, Clion,vim, and more.
- If the graduate of the brush problem recommends using VS comes with the C + + compiler, specifically you understand.
Download boost
Website address: https://www.boost.org/
: https://dl.bintray.com/boostorg/release/1.68.0/source/
Compiling the installation
(1) Download the boost_1_68_0.7z here, use the Bandzip decompression and put it on the C drive:
(2) Open in the Windows Start menu 适用于VS 2017的x64本机命令行工具
:
(3) Enter the Boost directory and execute it sequentially:
bootstrapb2 --buildtype=complete
(4) Setting environment variables:
The main thing is to set the Windows environment variable boost_root=boost installation directory:
Installing the VS2017 Extension
(1) Search:
(2) Installation:
Test environment
"' C + +
#include "pch.h"
#include <boost/timer.hpp>
#include <iostream>
#include <iomanip>
using namespace Std;
using namespace boost;
int main ()
{
Timer T;
cout << "Now time el:" << t.elapsed () << "s\n";
cout << "Max TimeSpan:" << T.elapsed_max ()/3600 << "h\n";
cout << "Min timspan:" << t.elapsed_min () << "s\n";
return 0;
}
/*
Boost Compilation and Installation:
1. Download boost, unzip to the specified directory;
2. Go to boost directory execution:
Bootstrap
B2--buildtype=complete
3. Set the installation directory of the Windows environment variable boost_root=boost;
4. Create a Windows console app, execute: Project--Manage nuget packages;
5. Search for boost and install to complete.
*/
### 结果![](http://i2.51cto.com/images/blog/201809/04/da666d09d3988a26deab1b1af31206ca.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
Windows Quick Install C + + library full boost+vs2017 activation