Fork me on GitHub
摘要: 举例如下: char a[10];1、定义的时候直接用字符串赋值char a[10]="hello";注意:不能先定义再给它赋值,如 char a[10]; a[10]="hello";这样是错误的! 2、对数组中字符逐个赋值char a[10]={'h','e','l','l','o'}; 3、利 阅读全文
posted @ 2017-05-09 22:31 ranjiewen 阅读(25113) 评论(0) 推荐(2) 编辑