01 2015 档案

摘要:1 #include 2 #include 3 4 int main() 5 { 6 char s1[] = {'H', 'e', '1', '2', 'o'}; 7 char *p=(char *)(s1+3); 8 printf("*p:%c\n",p[0]); 9 char *p2=(... 阅读全文
posted @ 2015-01-15 10:32 ltlly 阅读(1215) 评论(0) 推荐(0)
摘要:#运算符用于在预编译时,将宏参数转换为字符串eg.#include #define CONVERT(f)(#f)void helloworld(){ printf("hi,tom welcome to you!");}int main(){ printf("%s\n",CONVERT(hello w... 阅读全文
posted @ 2015-01-12 12:00 ltlly 阅读(189) 评论(0) 推荐(0)