Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Letter {
  6.     int index, house, room;
  7.     string name, city, street;
  8. };
  9.  
  10. void sentLetter(Letter letter) {
  11.     postOffice.addNewLetter(letter);
  12.     return;
  13. }
  14.  
  15. struct Animal {
  16.     string name;
  17.     int type;
  18.     union {
  19.         string color; // if dog or cat
  20.         int years; // if turtle
  21.         int height; // if giraffe
  22.     } config;
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement