上一页 1 ··· 4 5 6 7 8
  2013年5月13日
摘要: main(void) { char *target = "I love you!"; //这只把常量区的数据""I love you!"的指针赋值给target ,你无法修改 char *source = "abc"; strcpy(target, source); puts(source); puts(target); } char target[] = "I love you!"; //把 把常量区的数据""I love you!"复制到target数组 阅读全文
posted @ 2013-05-13 09:44 flash610 阅读(443) 评论(0) 推荐(0)
  2013年5月10日
摘要: 指针 阅读全文
posted @ 2013-05-10 12:23 flash610 阅读(140) 评论(0) 推荐(0)
摘要: 指针数组,strcpy函数,分配动态(自由)空间 阅读全文
posted @ 2013-05-10 09:00 flash610 阅读(164) 评论(0) 推荐(0)
  2013年5月9日
摘要: 字符串,剪切,复制 阅读全文
posted @ 2013-05-09 19:38 flash610 阅读(146) 评论(0) 推荐(0)
摘要: c错误代码,操作指针数组, 阅读全文
posted @ 2013-05-09 14:11 flash610 阅读(157) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8