C语言tolower和toupper的用法
来源:互联网 发布:网络视听节目 编辑:程序博客网 时间:2024/06/07 20:56
作用:
C库函数 int tolower(int c)转换给定的字母为小写。
C库函数 int toupper(int c)转换给定的字母为大写。
声明
以下是声明的tolower()函数。
int tolower(int c);
以下是声明的toupper()函数
int toupper(int c);
参数
c -- 这是字母转换为小写(或者大写)。
头文件:
#include <ctype.h>
例子如下:
#include<stdio.h>
#include <ctype.h>
int main(void)
{
char ch = 'A';
ch = tolower(ch);
printf("ch=%c\n",ch);
ch = 'b';
ch = toupper(ch);
printf("ch=%c\n",ch);
return 0;
}
输出结果:
ch=a
ch=B
ch=B
阅读全文
0 0
- C语言tolower和toupper的用法
- toupper 和tolower 的返回值
- toupper 和 tolower
- toupper()与tolower()的编写
- toupper和tolower的返回值是int型值
- tolower/toupper
- C语音 大小写字符转换函数tolower函数和toupper函数
- C/C++库函数(tolower/toupper)实现字母的大小写转换
- 在toupper/tolower前面加::,强制指定是C版本的
- ctype.h头文件中的tolower和toupper以及cctype其他函数的应用
- C++ string大小写转换以及transform,tolower,toupper,用法
- toupper, tolower, isupper, islower
- strdup tolower toupper 实例
- tolower函数toupper函数
- C语言函数:toupper
- stl string 的 trim split replace tolower toupper
- tolower函数的用法
- C语言字符串处理集【strrchr和tolower】
- 空间向量的应用
- 终端显示随机彩色字母
- eclipse安装maven插件
- SyntaxError: Unexpected token import
- 关于线程Thread的执行顺序的前后
- C语言tolower和toupper的用法
- Java分析工具
- 写了 15 年代码,总结出提升 10 倍效率的三件事
- 如何合理优化WEB前端,高效提升WEB前端性能
- WMI Libraly > Win32_PrintJob Class
- Convert HTML Entities
- java重载与重写的区别
- Effective STL学习笔记-条款39
- sap百分数表示Demo