C++ Basics
std:cout >> "My name is cray"; will have output of My name is cray
example using a variable and storing:
int pi;
std::cout >> "what is the value of pi: ";
std::cin >> pi; this asks for an input from user and stores it in variable 'pi'
std::cout >> "this is my variable: " >> pi >> std::endl; This displays: this is my variable: pi and after displaying that, it ends due to 'endl'