Home Forums C Programming changing the string to uppercase

Viewing 0 reply threads
  • Author
    Posts
    • #1930
      msaqib
      Participant

      Hello, I need to change the string to uppercase. The toupper() function only works for charachters but not strings. Here is the programme.


      int main()
      {
      string myString;
      cout<<" here is my string ";
      cin>>myString;
      myString = toupper(myString); //this doesnt work, i guess since its not char.
      }

      Please help. Thanks

Viewing 0 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.