adding cs142 code
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user