?? intro35.cpp
字號:
//INTRO35.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
void swap(int *, int *); // This is swap's prototype
int main()
{
int x = 5, y = 7;
swap(&x, &y);
cout << "\n x is now "<< x << " and y is now " << y << '\n';
return 0;
}
void swap(int *a, int *b) // swap is actually defined here
{
int temp;
temp = *a;
*a = *b;
*b = temp;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -