how to cout string and int in cpp code example Example: c++ cout int #include <iostream> std::cout << "Hello, World!" << std::endl;