运用swap函数实现两个数交换
#include
using namespace std;
void Swap(int *x,int *y){
int temp= *x;
*x= *y;
*y=temp;
}
int main(){
int a,b;
cin>>a>>b;
Swap(&a,&b);
cout&lt;<a>&lt;&lt;&quot; &quot;&lt;</a>
#include
using namespace std;
void Swap(int *x,int *y){
int temp= *x;
*x= *y;
*y=temp;
}
int main(){
int a,b;
cin&gt;&gt;a&gt;&gt;b;
Swap(&amp;a,&amp;b);
cout&lt;<a>&lt;&lt;&quot; &quot;&lt;</a>
全部评论
相关推荐
牛客72783561...:简历不是这么写的,你这两个项目只说了用到了什么技术,却没说取得了什么成果,在我看来这就是你自己做的一个demo,没有价值。你为什么不写你电赛国二的那个项目? 点赞 评论 收藏
分享
孩子我想要offer:发笔试后还没笔试把我挂了,然后邮箱一直让我测评没测,后面不知道干嘛又给我捞起来下轮笔试,做完测评笔试又挂了😅
点赞 评论 收藏
分享
点赞 评论 收藏
分享
顺丰集团工作强度 372人发布