建立一个名为Student的类,该类有以下几个私有成员变量:学生姓名、学号、性别、年龄。还有以下两个成员函数:一个用于初始化学生姓名、学号、性别和年龄的构造函数,一个用于输出学生信息的函数。编写一个主函数。声明一个学学生对象。然后调用成员函数在屏幕输出学生信息。

上传者: wujinfei | 上传时间: 2019-12-21 21:57:39 | 文件大小: 1.97MB | 文件类型: rar
C++考试题目: 题目:建立一个名为Student的类,该类有以下几个私有成员变量:学生姓名、学号、性别、年龄。还有以下两个成员函数:一个用于初始化学生姓名、学号、性别和年龄的构造函数,一个用于输出学生信息的函数。编写一个主函数。声明一个学学生对象。然后调用成员函数在屏幕输出学生信息。 编程环境:vs2010,语言:c++ 属性:控制台应用程序。

文件下载

资源详情

[{"title":"( 45 个子文件 1.97MB ) 建立一个名为Student的类,该类有以下几个私有成员变量:学生姓名、学号、性别、年龄。还有以下两个成员函数:一个用于初始化学生姓名、学号、性别和年龄的构造函数,一个用于输出学生信息的函数。编写一个主函数。声明一个学学生对象。然后调用成员函数在屏幕输出学生信息。","children":[{"title":"defineclass","children":[{"title":"defineclass.suo <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"defineclass.sdf <span style='color:#111;'> 6.52MB </span>","children":null,"spread":false},{"title":"defineclass","children":[{"title":"stdafx.cpp <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"defineclass.vcxproj <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"defineclass.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"defineclass.vcxproj.filters <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc100.idb <span style='color:#111;'> 219.00KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 10.26KB </span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"link.9268-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 12.02KB </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"defineclass.exe.embed.manifest <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"defineclass.lastbuildstate <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"defineclass.obj <span style='color:#111;'> 48.24KB </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"link.9268.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 724B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"defineclass.Build.CppClean.log <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"defineclass.exe.embed.manifest.res <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"defineclass.log <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false},{"title":"link.9268-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"defineclass.exe.intermediate.manifest <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"defineclass.pch <span style='color:#111;'> 1.13MB </span>","children":null,"spread":false},{"title":"defineclass_manifest.rc <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'> 292.00KB </span>","children":null,"spread":false},{"title":"link.9268.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":false},{"title":"defineclass.cpp <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"defineclass.sln <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"defineclass-dec63633","children":[{"title":"defineclass-ea2532ad.ipch <span style='color:#111;'> 2.25MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"defineclass.exe <span style='color:#111;'> 37.00KB </span>","children":null,"spread":false},{"title":"defineclass.ilk <span style='color:#111;'> 363.65KB </span>","children":null,"spread":false},{"title":"defineclass.pdb <span style='color:#111;'> 603.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 桌上有只猴子 :
    太厉害了,谢谢
    2019-05-24
  • 慕布理 :
    认真学习了 很不错
    2018-12-18
  • aaaaa1e :
    还可以。。。。
    2018-06-15
  • zhaori123 :
    很适合初学者。
    2018-04-06
  • wangreg :
    适合初学者,还不错
    2014-06-07

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明