Well at the end can't you just do an string erase on the last but one element?
string p = "{1,2,3,24,}";
p.erase(p.length()-2,1);
Last edited by iamthwee; Oct 11th, 2009 at 9:31 am.
Reputation Points: 1536
Solved Threads: 431
Posting Expert
Offline 5,865 posts
since Aug 2005