第1章 第8题
来源:互联网 发布:c语言的h文件 编辑:程序博客网 时间:2024/04/29 22:30
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
swap(a,b);
cout<<a<<" "<<b<<endl;
return 0;
}
void swap(int &a,int &b)
{
int tmp=0;
if(a<b)
{
tmp=a;
a=b;
b=tmp;
}
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
swap(a,b);
cout<<a<<" "<<b<<endl;
return 0;
}
void swap(int &a,int &b)
{
int tmp=0;
if(a<b)
{
tmp=a;
a=b;
b=tmp;
}
0 0
- 第1章 第8题
- 第3章 第8题
- 第10章第8题
- 第1章 第7题
- 第1章 第9题
- 第1章 第10题
- 第1章 第11题
- 第1章 第12题
- 第1章 第13题
- 第1章 第14题
- 第4章 第1题
- 第5章 第1题
- 第5章第1题
- 第7章 第1题
- 第7章第1题
- 第10章第1题
- 第8章 1-3题
- c语言程序设计现代算法第8章第9题
- android 动态加载jar/dex文件
- 这世界我曾经来过--童年
- c语言string源码
- 1. PHP 命名规则
- 黑马程序员——异常小结
- 第1章 第8题
- 在linux(CentOS)上搭建git服务器和配置gitolite权限管理
- 简单工厂模式(四)
- Weka使用教程转载
- software_base-version_control-git-normal
- const int *p,int *const p区别
- getOutputStream() has already been called for this response错误
- JAVA API 包装类 Integer
- servlet与filter和listener的区别