Check out example codes for "c++ cout int". It will help you in understanding the concepts better.

Code Example 1

int i;
  cout << "Please enter an integer value: ";
  cin >> i;

Code Example 2

#include <iostream>

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

Code Example 3

cout << "Phrase << endl;

Learn ReactJs, React Native from akashmittal.com