I had to convert an int element of an array to a string...so this is how I did....
string somestring = IntToString(xyz[i]);
string IntToString(int num)
ostringstream myStream; //creates an ostringstream object
myStream << num << flush;
return(myStream.str()); //returns the string form of the
I used the above mentioned function....is there any other way to do it.