functions proble

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

Join Date: Dec 2008
Posts: 17
Reputation: singhraghav has a little shameless behaviour in the past 
Solved Threads: 1
singhraghav singhraghav is offline Offline
Newbie Poster

Re: functions proble

 
0
  #11
Dec 13th, 2008
thx so much guys....i got it...
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 90
Reputation: unbeatable0 is an unknown quantity at this point 
Solved Threads: 12
unbeatable0 unbeatable0 is offline Offline
Junior Poster in Training

Re: functions proble

 
0
  #12
Dec 13th, 2008
Why bother with the whole word when you only need the first letter ('m' or 'f')?
  1. if(s[0]=='m' || s[0]=='M')
  2. // do what you want for male
  3.  
  4. else
  5. // do what you want for female
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 613 | Replies: 11
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC