04737 C++程序设计2017年04月份历年真题1-答案.docVIP

  • 6
  • 0
  • 约1.07千字
  • 约 14页
  • 2018-10-26 发布于天津
  • 举报

04737 C++程序设计2017年04月份历年真题1-答案.doc

04737C程序设计2017年04月份历年真题1-答案

C++程序设计 试卷第 PAGE 14 页 共 NUMPAGES 14 页 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); ~Person( ); Show()

文档评论(0)

1亿VIP精品文档

相关文档