-
Install Visual Studio Windows C/C++ build tools (MSVC)
-
Install VS code
-
Install code runner extension in VS code
-
Install C++ IntelliSense extension in VS code
-
Download the MinGW g++ compiler and install that,
(Download MinGW - Minimalist GNU for Windows from SourceForge.net)
select the following options and proceed with the installation,
once the download process is finished, select these files to be installed,
-
Add "C:\MinGW\bin" to your environment variable path,
-
Download the stdc++.h file and put it under this location on your PC,
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include\bits
We are good to go now; if you run the code using the play/run button, you should see something like this,