文章标题
来源:互联网 发布:网络主播签约注意事项 编辑:程序博客网 时间:2024/06/16 18:26
#include<stdio.h>void exchange(int *p1,int *p2,int *p3);void swap(int *x,int *y) { int temp; if(*x<*y){ temp = *x; *x = *y; *y = temp; }}int main(){ int a,b,c; int *p1,*p2,*p3; p1=&a; p2=&b; p3=&c; scanf("%d%d%d",&a,&b,&c); exchange(p1,p2,p3); printf("%d %d %d\n",a,b,c); return 0;}void exchange(int *p_1,int *p_2,int *p_3);{ swap(p_1,p_2); swap(p_1,p_3); swap(p_2,p_3);}
阅读全文
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- Windows安装ElasticSearch5.x以上版本以及插件的方法
- Android 关于sqlite中 ...where... in 的实现
- 【Windows】Windows中是否有代替Linux中cat的命令
- java学习笔记-安装运行与变量初阶
- python的参数管理包
- 文章标题
- 机器学习日记12月7日
- Linux 链接详解----动态链接库
- 【数据结构】二叉树的线索化!!
- 【数据结构】外部排序总结 + 构建败者树 Python 版
- 进程间通信预习(二)
- linux上部署安装MySQL5.6.23
- Linux进程间通信
- RAC其中一个节点监听没有起来的解决方案【ora.LISTENER.lsnr INTERMEDIATE】