vimwiki

C++ iostream

Include

#include <iostream>

cout

std::cout stand for “character output”. Is used with the insertion operator << to print values on the terminal.

std::cout << "hello " << name;

Does not add a new line automatically.

endl

std::endl stand for “end line”. Add a line.

std::cout << "Hello World!" << std::endl;