To upper case

    0

    0

    Giovanny Gongora

    Codiga's C++ Recipes

    Convert a string to upper case

    # 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;
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.