# include <iostream>
      # include <string>
      
      using namespace std;
      void toUpperCase(){
        char str1 [30], temp[30];
        cout < < "Enter the string:";
        cin > > str1;
        strcpy ( temp, str1);
        cout < < "strupr ( temp ) : " < < strupr (temp) < < end1;
      }
      
      Cpp language logo

      To upper case

      Codiga's C++ Recipes

      Convert a string to upper case

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.