摘要: #include <stdio.h>#include <stdlib.h>int main(){ int s=0; int *p=&s; printf("%d\n",p); *p++;//增加的是指针// ++ 和取值的* 是同一级别 单目运算从右边向左边结合 printf("%d\n",s); printf("%d\n",p);//比前一个指针多了4字节 也就是int的长度 p=&s; (*p)++;//指针指向的空间内容自加1 printf("%d\n",s); s++; 阅读全文
posted @ 2013-03-28 20:43 cart55free99 阅读(306) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>void toChars(char str[],int num);int isHui(char str[]);int isSquare(int num);void main(){ int num=100; while((num++)<1000) { char str[20]; int i=0; //初始化 for(; i<20; i++) { str[i]=0; ... 阅读全文
posted @ 2013-03-28 19:50 cart55free99 阅读(220) 评论(0) 推荐(0) 编辑