| | |
functions proble
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2008
Posts: 90
Reputation:
Solved Threads: 12
Why bother with the whole word when you only need the first letter ('m' or 'f')?
c++ Syntax (Toggle Plain Text)
if(s[0]=='m' || s[0]=='M') // do what you want for male else // do what you want for female
![]() |
Similar Threads
Other Threads in the C++ Forum
- Previous Thread: sprintf breaks memory?
- Next Thread: CAN bus, opencv and pcmcia
Views: 613 | Replies: 11
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





