31 lines
563 B
C++
31 lines
563 B
C++
#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
|