school/cs142/lab09/restaurant.cpp
2016-04-06 20:45:34 -07:00

9 lines
193 B
C++

#include "restaurant.h"
using namespace std;
ostream & operator<<(ostream & os, restaurant & r) {
os << "{\"name\": \"" << r.name << "\", \"score\": " << r.score << "}";
return os;
}