Hi, I need to store the value of an int variable as an element in a string. i.e.
1 2 3 4
string S = "abcde";
int count;
count = 15; //i.e count gets assigned some value during the course of the program
S[3] = count; //<= problem! I want to store count as an i'th element of the string but the problem is that count is an int and I don't know its value so can't use '15'
L B is right that I wanted to replace rather than insert. I didn't get time to work on the problem since posting this on March 2. Got it working today based on your inputs. :)