C++ String Create a String Variable via the string Type

Description

C++ String Create a String Variable via the string Type

#include <iostream>

using namespace std;

int main()//from w w  w . jav  a2 s. c  om
{
  string mystring;
  mystring = "Hello there";
  cout << mystring << endl;
  return 0;
}



PreviousNext

Related