Using String
      A string is generally understood as a data type storing a sequence of data values, usually bytes.
/*
	http://www.ProbCOMP.com
	
	A string is generally understood as a data type storing a sequence of data values, 
	usually bytes, in which elements usually stand for characters according to a character encoding, 
	which differentiates it from the more general array data type.In c++ we have string as a data type.

*/

#include<iostream>
#include<string>
using namespace std;

void main()
{
	string s;
	cout<<"enter the string: ";
	cin>>s;
	cout<<endl<<"The string is "<<s;
	
}									

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More