fkjj.net
当前位置:首页 >> #inCluDE<stDio.h> voiD mAin() { voiD ExChAngE(i... >>

#inCluDE<stDio.h> voiD mAin() { voiD ExChAngE(i...

#include void exchang(int *pa,int *pb,int *pc) { int M,N; if(*pa>*pb) { int *temp=pa; pa=pb; pb=temp; } if(*pa>*pc) { int *temp=pa; pa=pc; pc=temp; } if(*pb>*pc) { int *temp=pb; pb=pc; pc=temp; } M=*pa; N=*pc; printf("%d,%d",M,...

函数的参数改一改就可以了。 #include void exchange( int *a, int *b ) { int temp; temp = *a; *a = *b; *b = temp; return; } int main() { int x, y, z; printf( "please input three integers:\n" ); scanf( "%d%d%d", &x, &y, &z ); if( x...

网站首页 | 网站地图
All rights reserved Powered by www.fkjj.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com