| 1 | #include "d.h" |
| 2 | #include <iostream> |
| 3 | |
| 4 | struct D *DCreate (void) |
| 5 | { |
| 6 | std::cout << "DCreate" << std::endl; |
| 7 | return new D (); |
| 8 | } |
| 9 | void DDoA (struct D *d) |
| 10 | { |
| 11 | std::cout << "DDoA" << std::endl; |
| 12 | d++; |
| 13 | } |
| 14 | void DDoB (struct D &d) |
| 15 | { |
| 16 | std::cout << "DDoB" << std::endl; |
| 17 | d.d++; |
| 18 | } |
| 19 | void DDoC (const struct D &d) |
| 20 | { |
| 21 | std::cout << "DDoC: " << d.d << std::endl; |
| 22 | } |
| 23 | void DDestroy (struct D *d) |
| 24 | { |
| 25 | std::cout << "DDestroy" << std::endl; |
| 26 | d++; |
| 27 | } |