C++ examples for Data Type:string
Representing Strings in Code Using Literals
#include <iostream> #include <string> using namespace std; namespace//from w w w . j av a 2s. c o m { const std::string STRING{ "This is a string"s }; } int main() { cout << STRING << endl; return 0; }