blob: 294e3afbafa6f9fbc402b5514f21fa9e22358176 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
int main()
{
int foo = 42;
switch (foo) {
case 1:
std::cout << "1" << std::endl;
break;
case 2:
std::cout << "2" << std::endl;
break;
default:
std::cout << "Neither 1 nor 2." << std::endl;
}
}
|