Mega Code Archive

 
Categories / C++ Tutorial / String
 

Define a string variable, assign a value and display it

#include <iostream> #include <string> using namespace std ; using std::cout;        using std::cin; int main() {   string s = "www.rntsoft.com \n";   cout <<s;    return 0; } www.rntsoft.com