I need advice on removing suffixes.......

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2009
Posts: 10
Reputation: reese27 is an unknown quantity at this point 
Solved Threads: 0
reese27 reese27 is offline Offline
Newbie Poster

I need advice on removing suffixes.......

 
0
  #1
30 Days Ago
I'm trying to figure out how to even start a program that removes suffixes like if i were to enter programs, are, not, limited, to, drawing, composition, it would output....
program
are
not
limit
to
draw
composi
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,678
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 263
Lerner Lerner is offline Offline
Posting Virtuoso
 
0
  #2
29 Days Ago
In the example shown I'd probably use the appropriate version of getline() for the type of string I'm going to use with the comma char as the delimiting char. This could be generalized to using any valid char as a delimiting char, not just the comma char. However, if the suffixes don't have to be a single char, then the process is a little more complicated.
Klatu Barada Nikto
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 10
Reputation: reese27 is an unknown quantity at this point 
Solved Threads: 0
reese27 reese27 is offline Offline
Newbie Poster
 
0
  #3
29 Days Ago
Originally Posted by Lerner View Post
In the example shown I'd probably use the appropriate version of getline() for the type of string I'm going to use with the comma char as the delimiting char. This could be generalized to using any valid char as a delimiting char, not just the comma char. However, if the suffixes don't have to be a single char, then the process is a little more complicated.
Could you show me an example? I am a beginner, if you have to time to show me an example.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,678
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 263
Lerner Lerner is offline Offline
Posting Virtuoso
 
0
  #4
29 Days Ago
getline(temp, ',');
willl take Hello from the string Hello, World and put it in temp, if temp is declared to be an STL string object.
Klatu Barada Nikto
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC