Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // C++ standard includes
- #include <string>
- #include <vector>
- // 3rd party lib includes
- #include <boost/thread.hpp>
- // project dependencies
- #include "anything.hpp"
- namespace test
- {
- namespace subNamespace
- {
- enum MyEnum
- {
- E_ONE,
- E_TWO,
- E_THREE
- }
- class Example : public MyAwesomeBaseClass
- {
- private:
- int m_myNumber;
- Example *m_next;
- void m_reset();
- bool m_test(Demo *myObj, int crit);
- protected:
- string s_testShared;
- bool s_sharedFunction();
- public:
- Demo();
- ~Demo();
- void setMyNumber(int newValue) throw();
- size_t getCount();
- static int getId();
- }
- size_t
- Example::getCount()
- {
- int anyVariableInFunctionScope;
- if ( a == b )
- return false;
- for ( int i = 0; i < 25; i += a )
- {
- anything();
- }
- int i = 0;
- while ( i < 25 )
- {
- anything();
- i += a;
- }
- int i = 0;
- do
- {
- anything();
- i += a;
- } while ( i < 25 );
- return b;
- }
- }
- }
- using namespace test::subNamespace;
- example = new Example();
- myExampleCopy = example;
- int count = example->getCount();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement