Advertisement
bueddl

Untitled

May 24th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // C++ standard includes
  2. #include <string>
  3. #include <vector>
  4.  
  5. // 3rd party lib includes
  6. #include <boost/thread.hpp>
  7.  
  8. // project dependencies
  9. #include "demo.hpp"
  10.  
  11. namespace test
  12. {
  13.     namespace subNamespace
  14.     {
  15.  
  16.     size_t
  17.     Example::getCount()
  18.     {
  19.         int anyVariableInFunctionScope;
  20.    
  21.         if ( a == b )
  22.             return false;
  23.            
  24.         for ( int i = 0; i < 25; i += a )
  25.         {
  26.             anything();
  27.         }
  28.        
  29.         int i = 0;
  30.         while ( i < 25 )
  31.         {
  32.             anything();
  33.        
  34.             i += a;
  35.         }
  36.        
  37.         int i = 0;
  38.         do
  39.         {
  40.             anything();
  41.            
  42.             i += a;
  43.         } while ( i < 25 );
  44.        
  45.         return b;
  46.     }
  47.  
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement