- This topic has 0 replies, 1 voice, and was last updated 18 years, 10 months ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › changing the string to uppercase
Hello, I need to change the string to uppercase. The toupper() function only works for charachters but not strings. Here is the programme.
1 2 3 4 5 6 7 8 9 | <br /> int main()<br /> {<br /> string myString;<br /> cout<<" here is my string ";<br /> cin>>myString;<br /> myString = toupper(myString); //this doesnt work, i guess since its not char.<br /> }<br /> |
Please help. Thanks