#include #include class Entry { public: std::string name; std::string phone; Entry(const std::string& nm="", const std::string& ph="") { name = nm; phone = ph; } }; std::ostream& operator<<(std::ostream& os, const Entry& e) { os << e.name << ": " << e.phone; return os; } int main(void) { Entry e[10]; int n = 0; e[n++] = Entry("Kwansei Gakuin University (PR)", "0798-54-6017"); e[n++] = Entry("Kwansei Gakuin University (KSC)", "079-565-7600"); e[n++] = Entry("Kobe University", "078-881-1212"); e[n++] = Entry("Sanda Woodytown SATY", "079-564-8800"); e[n++] = Entry("Sanda Hotel", "079-564-1101"); for (int i=0; i> s; // ------------------------------------------------ // name に s を含むデータを全て表示せよ // ------------------------------------------------ return 0; }