c++ logging example code

C++ logger class ( Basic )

Sometimes its necessary to take everything we have covered already and write some basic sample class like this c++ logging example. There are logger classes that are generally used for debugging, timing performance and a plethora of other things. Central to most logger or logging classes is the theme of being able to set the level of the warnings that the programmer wants to see while coding....
Read More

C++ continue vs break

for ( int i = 0; i < 5; i++) if ( i % 2 ) continue; // next point of execution is the for ( ... The continue statement above will not allow the program to execute any of the code below which is inside the same for loop. The next instruction to be executed will be the test for i < 5 in order to ascertain whether the code should continue running or not. The code below shows the use of the...
Read More
Top