Skip to content

TheCongaGuy/Fitness-App-Exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness App Exercise

This program was an exercise in working with classes, and overloaded operators. It's nice moving back to C++ after teaching myself C for the past month, though learning C gave me a lot of insight on how C++ operates, and the similarities between them. It also really helped my understanding of C++ and my appreciation of the glorious std::string data type!

Layout

This program is made of three different classes; a DietPlan class, an ExercisePlan class, and a FitnessAppWrapper class. While the first two classes deal with the data and data operations, the wrapper (as the name implies) wraps both of those classes together into one neat package that you can run through the .runApp() member method. The two data classes house the overloaded operator<< and operator>> methods for data extraction which the wrapper class utilizes to save and load the fitness plans to and from a text file.

        main()
          |
          v
  FitnessAppWrapper()  ----------------------------
  |               |                               ^
  v               v                             /   \
DietPlan()   ExercisePlan()         DietPlans.txt    ExercisePlans.txt

About

A Console Fitness Plan tracker. Fourth Project for Washington State University

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages