2018-10-02 De-struct-ion

posted Oct 2, 2018, 10:57 AM by Konstantinovich Samuel   [ updated Oct 2, 2018, 12:00 PM ]
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.
  • DONT FORGET A MAKEFILE
GitHub repo : MKS65C-struct
Place your partner's name as a file in your repo:
kim.dante.txt
ali.homer.txt 


ONE of you should also have the lab in the repo.


Comments