File tree Expand file tree Collapse file tree 1 file changed +27
-13
lines changed Expand file tree Collapse file tree 1 file changed +27
-13
lines changed Original file line number Diff line number Diff line change 33
44int main ()
55{
6- int x = 5 ;
7-
8- if (x == 5 )
6+ for (int i = 0 ; i < 5 ; i++)
7+ {
98 Log (" Hello World!" );
9+ }
10+
11+ Log (" ================================" );
1012
11- if (x)
13+ int i = 0 ;
14+ bool condition = true ;
15+ for (;condition;)
16+ {
1217 Log (" Hello World!" );
18+ i++;
19+ if (!(i < 5 ))
20+ condition = false ;
21+ }
22+
23+ Log (" ================================" );
1324
14- const char * ptr = " Hello" ;
15- if (ptr)
25+ i = 0 ;
26+ while (i < 5 )
27+ {
1628 Log (" Hello World!" );
29+ i++;
30+ }
1731
18- ptr = nullptr ;
19- if (ptr)
20- Log (ptr) ;
21- else if (ptr == " Hello " )
22- Log ( " Ptr is Hello! " );
23- else
24- Log ( " Ptr is null! " );
32+ Log ( " ================================ " ) ;
33+
34+ condition = false ;
35+ do
36+ {
37+ Log ( " Hello World! " );
38+ } while (condition );
2539
2640 std::cin.get ();
2741}
You can’t perform that action at this time.
0 commit comments