output in C++ code example
Example 1: how to cout in c++
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios
Example 2: get data from terminal c++
int i;
cout << "Please enter an integer value: ";
cin >> i;
Example 3: c++ output
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}