摘要: #include<stdio.h>int swap(int*a,int*b)//声明函数为swap函数 {int c; *b=c; *b=*a; *a=c;}//利用第三个变量将数值交换 main() { int*a,*b,p,q; p=1; q=0; a=&p;b=&q;//将数值附给a和b sw 阅读全文
posted @ 2017-03-22 13:27 伊靖雯 阅读(508) 评论(3) 推荐(0) 编辑