Resources, Sample Code & Recommendations for learning C++.
Watch the full video (6 hours, Telugu) below or on my YouTube Channel.
By the end of this tutorial you will have full confidence & skills in below aspects of C++.
You need to download below software to get C++ on your computer.
Windows PCs:
Mac OS:
# To check if C++ compilier is installed:
clang --version
# To install clang and other development compilers
xcode-select --install
Congratulations on installing VS Code & setting up the compilers. The next steps are important if you want to actually write, compile and execute C++ code. So don’t miss these.
1) Setup Environment Variables:
Add the path of your MinGW-w64 bin folder to the Windows PATH environment variable by using the following steps:
Path variable and then select Edit.C:\msys64\ucrt64\bin.PATH environment variable. You have to reopen any console windows for the updated PATH environment variable to be available[Source: VS Code Documentation]
2) Set up VS Code C++ Extensions
Open VS Code and go to Extensions (Ctrl Shift X) and search and install below extensions:
Now that we have C++ and IDE (VS Code) set up in your computer, let’s get coding. Here is a simple helloworld program in CPP.
#include
int main()
{
std::cout << "Hello, bagunnara?";
return 0;
}
To write this program, Just open a new file in VS Code (File > New File) and type the code shown above. Then hit the run button in top right corner of the VS Code to execute your helloworld.cpp program. See this quick demo.
I have prepared a few sample programs to understand various C++ concepts. Please download the code files by clicking on the download button below. Alternatively, you can access the files on my GitHub too.
Recommended Books:
All the best for your C++ Learning and coding mastery.
Got a question or feedback? Leave a comment below.
2 Responses to “Learn C++ in 6 Hours – Sample Files, Instructions and References”
Sir, as per your mention in C++ course is it ok to consider it will be enough to for a beginner to complete the entire course to ahead to
DSA??
Sir, as you mentioned a name which is same with my surname check mine once..
Yes, this should be sufficient for beginners to understand how C++ works, how to think in OO programming and gain confidence.
Late Burra Venkata Narayana garu is my Maths teacher and one of the greatest human beings. I wanted to acknowledge the impact he had on me with this small tribute.