Блог пользователя Tensor

Автор Tensor, 10 лет назад, По-английски
  • 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.
  • Hope this helps!
  • Happy coding
  • Проголосовать: нравится
  • +28
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Thank you very much (1+from me)

»
10 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

so clever you are! Thank you!

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

u can download the bits folder here

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

for Visual studio 2017 users .. you can add bits folder to this path:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Thanks and here's another solution. Just include the <__msvc_all_public_headers.hpp> in Visual Studio has the same effect as including <bits/stdc++.h> in GCC or MinGW.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

hi budu

»
3 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Any idea how to do this for Microsoft VS Code?

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

How about codeblocks, where can I add the stdc++.h to? Thanks