CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Jun 2011
    Posts
    9

    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
  •  





Click Here to Expand Forum to Full Width

Featured