tolower函数案例(tolower)

发布时间:2023-07-14 05:00:10 编辑: 来源:
导读 关于tolower函数案例,tolower这个问题很多朋友还不知道,今天小六来为大家解答以上的问题,现在让我们一起来看看吧!1、函数名: tolower...

关于tolower函数案例,tolower这个问题很多朋友还不知道,今天小六来为大家解答以上的问题,现在让我们一起来看看吧!

1、函数名: tolower   功 能: 把字符转换成小写字母,非字母字符不做出处理   头文件:在VC6.0可以是ctype.h或者stdlib.h。

2、常用ctype.h   用 法: int tolower(int c);   说明:和函数int _tolower( int c );功能一样。

3、但是_tolower在VC6.0中头文件要用ctype.h   C程序例:   #include   #include   #include   #include   int main()   {int length, i;   char string[]="THIS IS A STRING";   length=strlen(string);   printf("%s",string);   for(i=0;i   #include   #include   using namespace std;   int main()   {   string str= "THIS IS A STRING";   for (int i=0; i

本文分享完毕,希望对大家有所帮助。

免责声明:本文由用户上传,如有侵权请联系删除!

热点推荐

精选文章