vs get input c++ -code-runner code example
Example 1: how to print a string to console in c++
// Just some basic format
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Print a String" << endl;
}
Example 2: how to cout in c++
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios