標(biāo)題:
關(guān)于字符單引號問題
[打印本頁]
作者:
xiaojuan
時間:
2014-9-17 14:46
標(biāo)題:
關(guān)于字符單引號問題
#include<stdio.h>
#define SIZE 26
int main (void)
{
char ch[26];
int i;
for (i=0; i
scanf ("%c",&ch[i]);
for (i=0; i
printf ("%c",ch[i]);
for (i=0; i
{
printf ("%c",ch[i]+'32'); //''不可以省略,這個意思是代表將ch[i]加上一定的字符數(shù)字
}
return 0;
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1