c語言基礎(chǔ) C語言中的lower什么意思?
C語言中的lower什么意思?1 lower表示小寫,與大寫相反。2 ctype中的擴展名。H包含許多與字母小寫有關(guān)的函數(shù),如islower、tolower等,islower用于判斷字符是否為小寫;t
C語言中的lower什么意思?
1 lower表示小寫,與大寫相反。2 ctype中的擴展名。H包含許多與字母小寫有關(guān)的函數(shù),如islower、tolower等,islower用于判斷字符是否為小寫;tower用于將字符轉(zhuǎn)換為小寫
islower()用于判斷字符是否為小寫。它的原型是:intislower(intc)[參數(shù)]c是要檢測的字符。[返回值]如果參數(shù)C為小寫,則返回非零值;否則返回零值。[示例]確定str字符串中的小寫字母。#Include
C語言中的“islower”怎么用?是什么意思?
函數(shù)名:tower函數(shù):將字符轉(zhuǎn)換為小寫字母用法:inttower(INTC)程序示例:#include#include intmain(void){intlength,i char*string=“thisisasting”length=strlen(string)for(I=0I{string[I]=tower(string[I])}Printf(%sn”,string)return0}函數(shù)名:toupper函數(shù):將字符轉(zhuǎn)換為大寫字母用法:inttoupper(INTC)程序示例:#include#include intmain(void){intlength,I char string=“thisisasString”length=strlen(string)for(I=0I{string[I]=toupper(string[I])}printf(%sn,string)return0}