摘要: #include<stdio.h> int main() { int swap(int *p,int *q); int a,b; scanf("%d%d",&a,&b); int *p,*q; p=&a; q=&b; swap(p,q); printf("%d %d\n",*p,*q); retur 阅读全文
posted @ 2017-03-22 20:00 陈冠希的后花园 阅读(280) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};//定义一个12个的数组 我是2016024258,8+4=2,所以12 int*p;//定义指针 p=a;按照书上的运行不出来,就这么做了 int j;//定 阅读全文
posted @ 2017-03-22 19:46 陈冠希的后花园 阅读(141) 评论(0) 推荐(0) 编辑