1 #include "c.h" 2 #include <iostream> 3 C()4C::C () 5 : m_c (0) 6 { 7 std::cout << "C::C" << std::endl; 8 } C(uint32_t c)9C::C (uint32_t c) 10 : m_c (c) 11 { 12 std::cout << "C::C (uint32_t)" << std::endl; 13 } ~C()14C::~C () 15 { 16 std::cout << "C::~C" << std::endl; 17 } 18 19 void DoA(void)20C::DoA (void) 21 { 22 std::cout << "C::DoA" << std::endl; 23 } 24 void DoB(void)25C::DoB (void) 26 { 27 std::cout << "C::DoB" << std::endl; 28 } 29 30 void DoC(uint32_t c)31C::DoC (uint32_t c) 32 { 33 std::cout << "C::DoC=" << c << std::endl; 34 m_c = c; 35 } 36 uint32_t DoD(void)37C::DoD (void) 38 { 39 std::cout << "C::DoD" << std::endl; 40 return m_c; 41 } 42 43 void DoE(void)44C::DoE (void) 45 { 46 std::cout << "C::DoE" << std::endl; 47 } 48