1. #include<stdio.h>
  2. #include<ctype.h>//Containsthetolowerprototype
  3. voidmain(void)
  4. {
  5. intletter;
  6. for(letter=getchar();!feof(stdin);letter=getchar())
  7. putchar(tolower(letter));
  8. }

C语言转换大小写


  1. #include<stdio.h>
  2. #include<string.h>
  3. voidmain(void)
  4. {
  5. charline[255];//Lineoftextread
  6. while(fgets(line,sizeof(line),stdin))
  7. fputs(strupr(line),stdout);
  8. }

C语言转换大小写

本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/878528

相关文章:

  • 2022-01-07
  • 2021-12-18
  • 2021-12-16
  • 2022-02-03
  • 2022-01-01
  • 2021-12-22
  • 2021-10-24
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2021-10-15
  • 2022-01-04
  • 2022-02-17
  • 2021-12-08
  • 2022-01-13
  • 2022-03-04
相关资源
相似解决方案