摘要: int arr[100]; printf("&arr[0]=%d\n",&arr[0]); printf("arr=%d\n",arr); printf("&arr=%d\n",&arr); printf("&arr[0]+1=%d\n",&arr[0]+1); printf("arr+1=%d\n",arr+1); printf("&arr+1=%d\n",&arr+1);运行的结果&arr[0]=12 阅读全文
posted @ 2011-09-01 22:53 OYJJ 阅读(219) 评论(0) 推荐(0) 编辑
摘要: sscanf char buf[]="port=5000"; char key[100]=""; char value[100]=""; sscanf(buf,"%[^=]=%[^\n]",key,value); printf("key=%s\n",key); printf("value=%s\n",value); strtok char buf[]="port=5000"; char key[100]=""; char value[1 阅读全文
posted @ 2011-09-01 22:45 OYJJ 阅读(1880) 评论(0) 推荐(1) 编辑