c相关

1. visual studio 中编写c时,需要把变量声明在赋值语句的前端,否则会出现syntax error : missing ';' before 'type' 错误。

2.在字串操作时出现乱码需注意对'\0'的使用。

3. char *s="this is a string"; 是个静态字串其中的字符不可修改,否则会报 Access violation writing location 错误

posted @ 2012-06-01 00:53  fannet  阅读(131)  评论(0)    收藏  举报