
Here is how to test the string class already present in cpp.
To use simple strings u have to include <iostream>. For example consider the program,
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
string word="hello";
cout<<word;
getch();
}
There are various functions and operators in this string class. These operators are present in string -
= assignment
+ , += concatenation...