2016 - 2024

感恩一路有你

tolower函数使用方法 tolower()在c语言中是什么意思?

浏览量:2170 时间:2021-03-15 11:10:46 作者:admin

tolower()在c语言中是什么意思?

函数名:塔函数:将字符转换为小写字母,不处理非字母字符。头文件:在VC6.0中,可以是ctype。H或stdlib。H、 常用的ctype。H用法:inttower(intc)Description:和function int|tower(intc)的函数相同,但是|VC6.0中tower的头文件应该使用ctype。H C程序示例:#include<string。H>#包括<stdio。H>#包含类型(&T)。H>#包括<stdlib。H> int main(){int length,I char string[]=“这是一个string”length=strlen(string)printf(%sn“,string)for(I=0I<lengthi){string[I]=tower(string[I])}printf(%sn“,string)system(”pause“)}C程序示例:include<iostream> include<string> include<ctype>使用namespace STD int main(){string STR=“this is a string”for(int i=0 i)和结构尺寸()i){str[i]=tolower(str[i])}cout<<str<<endl返回0}

tolower函数使用方法 c语言tolower函数 c语言在线编译器

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。