老司机应该都知道C/C艹有个牛逼的头文件 include <bits/stdc++.h> 这个头文件包含了C艹的所有头文件

但是在宇宙第一IDE Visual Studio中并不自带,所以想用的话,就自己加呗

国外文档:

•This is just a method i used to make me able to include bits/stdc++.h

•in visual c++.

•for those had minGW installed on PC :

•C:\MinGW\mingw32\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits

•copy this folder and then go to this adress

•C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

•paste your folder. go to your visual studio project type bits you will see

•the auto-complete for the library and then choose stdc++.h

•for those don’t have minGW:

•you should write your own header file and include all libraries in it then

•go to C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

•make new folder name it “bits” and name the header file stdc++.h

•then paste it in “bits” folder.

人类能看懂的文档:

复制devc目录下的bits文件夹

1
D:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits

到vs目录下的

1
D:\Program Files (x86)\VIsual Studio\VC\Tools\MSVC\14.10.24930\include

2017-10-02
Contents

⬆︎TOP