1 #include "b.h" 2 #include <iostream> 3 BDoA(struct B b)4 void BDoA (struct B b) 5 { 6 std::cout << "BDoA b_a=" << b.b_a << ", b_b=" << b.b_b << std::endl; 7 } BDoB(void)8 struct B BDoB (void) 9 { 10 std::cout << "BDoB" << std::endl; 11 struct B b; 12 b.b_a = 1; 13 b.b_b = 2; 14 return b; 15 } 16