how to print a string to console in c++

C++
// Just some basic format 

#include <iostream>
#include <string>
using namespace std;

int main()
{
 cout << "Print a String" << endl; 
}
Source

Also in C++: