摘要: #include #include #include int aoti(char c){ if(c >= 'A' && c <= 'Z') return c-'A'+'a'; else return c;}int main(){ int i = 0; ... 阅读全文
posted @ 2014-10-29 21:23 司空格子Ored 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 举例如下:char a[10];1、定义的时候直接用字符串赋值char a[10]="hello";注意:不能先定义再给它赋值,如char a[10];a[10]="hello";这样是错误的!2、对数组中字符逐个赋值char a[10]={'h','e','l','l','o'};3、利用strc... 阅读全文
posted @ 2014-10-29 19:08 司空格子Ored 阅读(268) 评论(0) 推荐(0) 编辑