-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForBreak.cpp
More file actions
59 lines (44 loc) · 788 Bytes
/
ForBreak.cpp
File metadata and controls
59 lines (44 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* \file ForBreak.cpp
* \brief
*/
#include <StdStream/StdStream.h>
#include <StdTest/StdTest.h>
#include <Stl.h>
//--------------------------------------------------------------------------------------------------
int main(int, char **)
{
for (int i = 0; i < 10; ++ i) {
{
{
if (i == 5) {
break;
}
std::cout << "break_1" << std::endl;
}
std::cout << "break_2" << std::endl;
}
std::cout << "break_3" << std::endl << std::endl;
}
std::cout << "end" << std::endl;
return EXIT_SUCCESS;
}
//--------------------------------------------------------------------------------------------------
#if OUTPUT
break_1
break_2
break_3
break_1
break_2
break_3
break_1
break_2
break_3
break_1
break_2
break_3
break_1
break_2
break_3
end
#endif