print string in c++
#include <iostream>
#include <string>
#include <iterator>
using std::cout; using std::cin;
using std::endl; using std::string;
int main(){
string s1 = "This string will be printed";
cout << s1;
cout << endl;
printf("%s", s1.c_str());
cout << endl;
return EXIT_SUCCESS;
}