C++ Get Started
In this tutorial, we will learn about Get Started, Syntax, and Basic Program of C++.
Get Started
To Start using C++, you need two things:
- A text-editor (like Notepad++, Code::Blocks and so on.), to write c++ code. Download Code::Blocks Text Editor
- A compiler, like GCC, to translate the C++ code into a language that the computer will understand.
There are many text editors and compilers available for C++.
C++ Install IDE
- An IDE (Intefrated Development Environment) is used to edit and Compile the code.
- Popular IDE's include - Code::Blocks, Eclipse, and Visual Studio.
- These above mention IDE's are Open Source and they can be used to edit and debug C++ code.
- We recommend Code::Blocks for practice our examples, which we believe is a good place to start coding.
C++ Quickstart
- Let's create our First C++ file in Code::Blocks.
- Open Codeblocks and go to File > New > Empty File.
- Write the following C++ Code and save the file as myfirstprogram.cpp(File > Save File as):
// Your First C++ Program
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
Output
Hello World!
Focus on how to run the code. and see the result of the above program.
Don't worry if you don't understand the above code: you can Click here to see the full details of First C++ Program.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of Get Started in C++.
Keep Learning : )
In the next tutorial, you'll learn about C++ Variables, literals and Constants
.