文档详情

面向对象程序设计(C++)知到智慧树期末考试答案题库2024年秋北方工业大学.docx

发布:2024-12-26约9.47千字共8页下载文档
文本预览下载声明

面向对象程序设计(C++)知到智慧树期末考试答案题库2024年秋北方工业大学

重载运算符需要的关键字为()

A:operatorB:templateC:constD:static

答案:operator

对于结构体中定义的成员,其默认的访问权限为()

A:publicB:staticC:privateD:protected

答案:C:private

#includeclassStudent{staticintrollno;public:voidshow(){rollno++;printf(%d,rollno);}};intStudent::rollno=

显示全部
相似文档