Work 06: Con-struct-ion

posted Oct 2, 2018, 7:28 AM by JonAlf Dyrland-Weaver   [ updated Oct 2, 2018, 1:20 PM ]
This is due 8am Thursday (10/4) morning.

With your table buddy:
  • Create a struct that has at least 2 data members, one must be a string.
    • You can provide struct prototypes outside of functions.
    • Don't just combine random things, make it meaningful (like food and price, athlete and associated statistic, Pokemon and something about Pokemon ..)
  • Write a function that returns an example of your struct when run.
    • This should not return the same struct every time.
  • Write a function that prints out variables of your structs type in a reasonable way.
  • Write a function that modifies values of your struct's type.
  • Write a main function that tests all these things.
    • Have meaningful output.
GitHub clone link: