|
-
January 27th, 2010, 07:32 AM
#1
splitting a string
Hi All,
I am new to c++, I want to split the string and add some thing to it
for example let say iam getting a input
string old="company$45$0.07$29-09-2009$company2$34$0.09$21-09-2009"
now i want a output where it should come like
string new=" ['company',45,0.07,'29-09-2009'],['company2',34,0.09,'21-09-2009'] ";
where i am splitting the string with $ char.
Please help me out.
Thanks in Advance
Regards,
Farooq.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|