c++ how to print a variable code example
Example 1: c++ print string
std::cout << "";
Example 2: c++ output
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Example 3: c++ cout int
#include <iostream>
std::cout << "Hello, World!" << std::endl;