school/cs142/lab09/restaurant.h

17 lines
331 B
C++

#ifndef __RESTAURANT_H__
#define __RESTAURANT_H__
#include <string>
#include <ostream>
using namespace std;
class restaurant {
public:
string name;
int score;
restaurant(string name, int score): name(name), score(score) {}
friend ostream & operator<<(ostream & os, restaurant & r);
};
#endif