9 lines
193 B
C++
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;
|
||
|
}
|