?? swapvals.c
字號:
#include <stdio.h>
void swap_values(int *a, int *b)
{
int temp;
temp = *a; // Temporarily hold the value pointed to by a
*a = *b; // Assign b's value to a
*b = temp; // Assign a's value to b
}
void main(void)
{
int one = 1, two = 2;
swap_values(&one, &two);
printf("one contains %d two contains %d\n", one, two);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -