- C++ is a general-purpose coding language.
- C++ runs line by line, from top to bottom.
std::cout is how you output to the terminal:
- declaration
- input value from user: std::cin >>
- if/else/elseif; switch
std::cout << "Good luck!\\n";
Compile and Execute
Compile:
g++ variable.cpp
Execute:
./a.out