First C++ Program
Learn to create and execute the first C++ program.
Problem solving with C++
The basic tools for understanding the flow and the results of simple programs are
We can run a program as many times as we want to try out different inputs of variables. We can also edit these programs to observe the result of a change in a value or logic for our learning.
In C++, we use cin
for input (to read a value from the user), and cout
for print (to display a value on the screen as output).
Hello World
It’s time to write our first program in C++, which will display the message “Hello World!”
on the screen.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy