4.17
来源:互联网 发布:淘宝发布宝贝不同重量 编辑:程序博客网 时间:2024/06/15 11:06
01.#include<iostream> 02.#include<string> 03.using namespace std; 04.class student 05.{ 06.public: 07. void show1(); 08. 09. student (string a,double b) 10. { 11. score=b; 12. name=a; 13. } 14.private: 15. string name; 16. double score; 17.}; 18.void student:: show1() 19.{ 20. cout<<name<<" "<<score<<endl; 21. 22.} 23.void show(student q) 24.{ 25. q.show1(); 26.} 27. 28. 29. 30. 31.int main() 32.{ 33. student stu[6]={student("huangchongwen",88),student("chenxi",100),student("dazhong",99),student("rongqing",100), 34. student("chenhuaqin",99),student("zhanghan",98)}; 35. for(int i=1;i<6;i+=2) 36. { 37. show(stu[i]); 38. } 39. return 0; 40.}
0 0
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- 【4.17】
- 4.17
- 4.17
- 4.17
- 4.17
- 4.17
- ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程
- curl访问文件出现504bad gatway
- Vector浅析
- 在OS X中安装配置Maven
- 微信图文中出现了腾讯视频时,教你弄到不能直接获取的视频原始地址的方法~
- 4.17
- linux命令学习:iptables详解2
- 著名Diffie-Hellman协议
- 从客户端中检测到有潜在危险的 Request.Form 值
- mq常用命令
- mysql中case..when..then..else..end的两种用法介绍
- NYOJ 贪心 在于从头到尾的遇到的两个串的每个个+做差累加和
- leetcode--ImplementstrStr
- php用switch多重分支做,计算器