menampilkan nama-nama bulan dalam class
#include <iostream> #include <string> using namespace std; class bulan{ friend ostream& operator <<(ostream&,const bulan&); friend istream& operator >>(istream&,bulan&); public: bulan(unsigned int b=0){nama=b;} // void nama_bulan1(); //void nama_bulan2(); //void nama_bulan3(); void bulannnya(); private: unsigned int nama; }; istream& operator>>(istream& masuk,bulan& x){ ...