c language

Featurd default


函数名:   tolower    
  功     能:   把字符转换成小写字母    
  用     法:   int   tolower(int   c);    
  程序例:    
   
  #include      
  #include      
  #include      
   
  int   main(void)    
  {    
        int   length,   i;    
        char   *string   =   “THIS   IS   A   STRING”;    
   
        length   =   strlen(string);    
        for   (i=0;   i         {    
                string[i]   =   tolower(string[i]);    
        }    
        printf(“%s\n”,string);    
   
        return   0;    
  }    
       
       
   
  函数名:   toupper    
  功     能:   把字符转换成大写字母    
  用     法:   int   toupper(int   c);    
  程序例:    
   
  #include      
  #include      
  #include      
   
  int   main(void)    
  {    
        int   length,   i;    
        char   *string   =   “this   is   a   string”;    
   
        length   =   strlen(string);    
        for   (i=0;   i         {    
              string[i]   =   toupper(string[i]);    
        }    
   
        printf(“%s\n”,string);    
   
        return   0;    
  }     
    
  ——————————————————————————————

#include      
  #include      
  #include      
  #include    
   
  int   main(void)    
  {    
        int   length,   i;    
        char   string[20]=   “this   is   a   string”;    
         
        length   =   strlen(string);    
        for   (i=0;   i         {    
              string[i]   =   toupper(string[i]);    
        }    
   
        printf(“%s\n”,string);    
        system(“pause”);        
        return   0;    
  }

Technical Project Manager (Scurm) | Programmer (C#, Vue.js) | Advocate (INFJ-A) | j172.tw 人生是朝著目標前進的長遠道路 扔掉重物 兩手空空的走會更愉快