📄 quiz08-4.cpp
字号:
//quiz08-4.cpp
#include <iostream.h>
#include <conio.h>
void swap(int *,int *);
void main()
{ int a=10,b=15;
cout << "Before swap="<<a<<','<<b;
swap(&a,&b);
cout << "\nAfter swap="<<a<<','<<b;
getch();
}
void swap(int *a,int *b)
{ int data;
data=*a;
*a=*b;
*b=data;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -