adding cs142 code
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef __MENU_H__
|
||||
#define __MENU_H__
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <ostream>
|
||||
using namespace std;
|
||||
|
||||
#include "people.h"
|
||||
|
||||
const vector<string> menu_items = {
|
||||
"(a)dd person",
|
||||
"(d)isplay",
|
||||
"(m)ake connection",
|
||||
"(b)reak connection",
|
||||
"(c)hange food",
|
||||
"(s)how food friends",
|
||||
"(e)xtra credit (bacon number)",
|
||||
"",
|
||||
"(q)uit",
|
||||
};
|
||||
|
||||
class menu {};
|
||||
|
||||
void get_index(people &, unsigned int &, string);
|
||||
void get_two_indices(people &, unsigned int &, unsigned int &);
|
||||
|
||||
ostream & operator<<(ostream & os, const menu & m);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user