会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小河沟大河沟
----------- 梦想还是要有的,万一实现了呢!纸上得来终觉浅 绝知此事要躬行!
博客园
首页
新随笔
联系
管理
订阅
2017年5月9日
C字符数组赋值
摘要: 举例如下: 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)
编辑
公告