04737C++程序设计201804月份历年真题1-答案解析.docVIP

  • 30
  • 0
  • 约1.08千字
  • 约 14页
  • 2018-10-25 发布于安徽
  • 举报

04737C++程序设计201804月份历年真题1-答案解析.doc

.WORD文档下载可编辑. 专业资料整理分享 switch语句,找到第一个满足的case之后,如果没有break,会继续执行后面的case语句. double operator()(double x,double y) const; switch语句,找到第一个满足的case之后,如果没有break,会继续执行后面的case语句. double operator()(double x,double y) const; #include iostream #include string using namespace std; class Birthday{ public: Birthday(int y,int m,int d); Show(); private: int year; int month; int day; }; Birthday::Birthday(int y,int m,int d){ year = y; month = m; day = d; } Birthday::Show(){ coutyear-month-dayendl; } class Person{ public: Person(string n,string s,int y,int m,int d); ~Perso

文档评论(0)

1亿VIP精品文档

相关文档