|
-
July 13th, 2011, 10:05 PM
#1
Trim Data in c++
Dear Experts,
I am a beginner for programming.
I would like to know how to trim data in string in c++
for example as below data i want to all the chanraters until -R1
i want to tring abcdT3-PSD-R1
i only want the last number.
"<subName>abcdT3-PSD-R1</subName>"
"<subName>abcdT2-PSD-R2</subName>"
"<SubName>abcdT2-PSD-R3</subName>"
"<SubName>abcdT66-PSD-R4</subName>"
Thanks
Last edited by geforce23; July 13th, 2011 at 10:26 PM.
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
|