Advertisement
Guest User

Step 1 of Code

a guest
Oct 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ////////////////////////////////////////////////////////
  2.  
  3. //Sub-Structures
  4.  
  5. struct SubscriberName //Sub-Structure for subscriber_master
  6. {
  7. string fname;
  8. string lname;
  9. int custID;
  10. }
  11.  
  12. struct Address //Sub-Structure for subscriber_master
  13. {
  14. string street;
  15. string city;
  16. string state;
  17. int zip_code;
  18. }
  19.  
  20. struct Date //Date Sub-Structure for use in RenewalInformation structure
  21. {
  22. string month;
  23. int day;
  24. int year;
  25. }
  26. struct RenewalInformation //Sub-Structure for subscriber_master
  27. {
  28. int months_left;
  29. Date renew_notice;
  30. }
  31.  
  32. /////////////////////////////////////////////////////////
  33.  
  34. //Top-Level Structure
  35.  
  36. struct subscriber_master
  37. {
  38. SubscriberName sub_name;
  39. Address address;
  40. RenewalInformation renewal_info;
  41. }
  42.  
  43. /////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement