1.#
点击查看考点
名字遮蔽
1#include <iostream>
2using namespace std;
3
4int v = 5;
5
6int main() {
7 int v = 65;
8 for (int v = 65; v <= 66; v++) {
9 switch (v) {
10 case ('A'):
11 cout << 'A' << endl;
12 break;
13 case ('B'):
14 cout << 'B' << endl;
15 default:
16 cout << ::v << endl;
17 }
18 }
19 cout << v << endl;
20}