`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
Yes there are many ways to compile c++ code on your laptop.
Firstly I will talk about compilers with editors.
You may like to download code blocks in which you would have to put your cpp code and click on the compile button to compile.
The other way is downloading g++ on your pc through command window.
After downloading set the variable location of g++ in environment variables.
Now move to the directory where the code is and type g++ main.cpp -o main
The above command is for file main.cpp and will make main.exe executable file.
Then type main in cmd and it will run your code through command window.
Kindly revert for any queries
Thanks.
Get Answers For Free
Most questions answered within 1 hours.