--- In [email protected], anuraag dimri <[EMAIL PROTECTED]> wrote: > > Hi there, > i tried sumtyn like decompressing a4b7c2 in to aaaabbbbbbbcc...didnt worked... i'm storing it in an array of big size and then trying to first shift b7c2 and then expand a4..is it acceptable.. heres the code...the numbers i have assumed to be single digit numbers in the original string.
Why don't you use C++?? If you can. Then try to use append(): basic_string& append(size_type n, charT c) http://www.sgi.com/tech/stl/basic_string.html which will append n copies of c to *this. <snip: code> Hope it helps! -Saurabh
