print a string c++ code example
Example 1: print in cpp
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
Example 2: c++ print string
std::cout << "";
Example 3: print in c++
#include <iostream>
using namespace std;
int main() {
cout << "ENTER TEXT HERE";
return 0;
}
Example 4: how to print string data type in c++
printf("%s\n",someString.c_str());