We all know stdc++.h lib that includes all libs in c++ But we can't use it in visual studio so i know a way to use it in visual studio , and this may help any one using VS and want to use stdc++.h
First thing
Download stdc++.h lib this is a link to download the file
Second thing
Copy the stdc++.h file Go to DIR C:\Program Files\Microsoft Visual Studio 12.0\VC\include\ Create new folder here and name it bits then paste stdc++.h inside the folder
Last thing
Open VS , make c++ project and try the Lib #include<bits/stdc++.h>
and that is everything I hope that will help you :)
still, the compiler does not recognize the library after following above steps
It worked for me. Make sure you are putting the header file in a "bits" folder inside a Visual Studio Include directory (for newer versions of Visual Studio, this is stored in the INCLUDE environment variable... you can type
echo %INCLUDE%
in a command prompt to view it).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
The console terminates immediately after printing output. How to stop it like Codeblocks console ?
CTRL+F5 or use this function
system('pause');
bits work but I will be happy if we find a way to use #include <ext/pb_ds/assoc_container.hpp>
include <ext/pb_ds/tree_policy.hpp> and all header files in vs so that I can use ordered set in it. I hope my question is clear.
download link doesn't work