摘要: 2 结果: 001 ke 77 002 fe 99 2 fe 99.00 Process exited after 36.61 seconds with return value 12 请按任意键继续. . . 3, 结果: zhao li li zhao sun sun zhao li li zh 阅读全文
posted @ 2017-04-10 19:52 陈冠希的后花园 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},i,c;//定义一个 数组 int *p=&a[0];//定义一个指针,并把a的地址赋予到指针上 scanf("%d",&i); p=p+i; pr 阅读全文
posted @ 2017-04-04 18:53 陈冠希的后花园 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 老师 我上课时候 单词打错了 所以有那么一点小瑕疵 一直没对 错误提示没看懂 阅读全文
posted @ 2017-03-31 17:42 陈冠希的后花园 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>void swap(int *p,int *q){ int *m; *m=*p; *p=*q; *q=*m; } main(){ int a,b; scanf("%d,%d",&a,&b); swap(&a,&b); printf 阅读全文
posted @ 2017-03-26 09:17 陈冠希的后花园 阅读(239) 评论(1) 推荐(0) 编辑
摘要: #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) 编辑