String datatype

Write a program to demonstrate the use of string variables in CPP.

#include<iostream>
using namespace std;
int main()
{
	string s;
	s = "BlackBerry";
	cout << s << endl;
	s = s + " Z10";
	cout << s << endl;
	return 0;
}

Output

BlackBerry
BlackBerry Z10