```cpp
int x = 3;
int *p = &x;
*p = 5;
cout << x;
```
int arr[3] = {0};
cout << arr[1];
int x = 0;
if (x = 1)
cout << "Yes";
else
cout << "No";
int a = 3, b = 4;
cout << (++a * b--);
**程序1**
#include <iostream>
using namespace std;
int main() {
int a = 7, b = 2;
a = a % b;
b = a * b;
cout << a << " " << b;
return 0;
}
**程序2**
int f(int n) {
if (n <= 1) return n;
return f(n-1) + n;
cout << f(4);
**程序3**
int cnt = 0;
for (int i=1; i<=20; i++) {
if (i % 4 == 0) continue;
cnt++;
cout << cnt;
**程序1(求最大值)**
int n, max_val = -1000;
cin >> n;
for (int i=0; i<n; i++) {
int x;
cin >> x;
if (x > max_val) ______;
cout << max_val;
**程序2(插入排序)**
int a[100], n;
for (int i=0; i<n; i++) cin >> a[i];
for (int i=1; i<n; i++) {
int key = a[i];
int j = i-1;
while (j >= 0 && a[j] > key) {
______;
j--;
a[j+1] = key;
**程序3(線性搜索)**
int arr[] = {2,4,6,8,10};
for (int i=0; i<5; i++) {
if (______) {
cout << "Found";
cout << "Not Found";