Passer au contenu principal
Accueil

To use bits/stdc++.h preprocessor in Visual Studio you need to download the stdc++.h file from the given below link.


Download file from the following link: https://gist.github.com/Einstrasse/ac0fe7d7450621a39364ed3b05cacd11

Create bits folder in the following directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include

In some cases, the folder C:\Program Files (x86)\Microsoft Visual Studio\2019\ might be empty. In such cases, go to vs code and type #include < at the top. You'll get auto complete suggestions . Along with each suggestion, a path should be visible for every suggestion. Copy the path and paste it on the file explorer. The path will land you inside the same include folder mentioned above.

Make a new directory with name bits and paste the stdc++.h file inside the bits folder.

Restart Visual Studio if it is running and use it


Modifié le: Monday 27 February 2023, 08:48
loader image