char arry to string

Hi Guys can anybody give me some easy and a helpful idea that how to convert char to string or vice verca,, Also make a program in which we convert a char into string please????????? CHAR ARRAY TO STRING

Conversion Char array to String
ALSO MAKE A PROGRAMME OF ARRAYS IN WHICH WE CHANGE CHAR TO STRINGS.......
const char a[] = "Hello";

std::string s( a );
thanks but please write a complete programe on it so that i get clear idea of conversion please......


please write a programeee
It is your assignment to write the program not main.
Last edited on
Topic archived. No new replies allowed.