Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
550B

  1. #ifndef __PERSON_H__
  2. #define __PERSON_H__
  3. #include <iostream>
  4. #include <vector>
  5. using namespace std;
  6. class person {
  7. public:
  8. string name;
  9. string fav_food;
  10. vector<string> friends;
  11. person(string new_name, string food) {
  12. name = new_name;
  13. fav_food = food;
  14. };
  15. void modify_food(string new_food);
  16. void display_person(vector<person> & p);
  17. void add_friend(string name);
  18. bool already_friends(string name);
  19. void delete_friend(string name);
  20. };
  21. #endif