第4题
来源:互联网 发布:2016韩国进出口数据 编辑:程序博客网 时间:2024/06/17 08:38
#include <iostream>using namespace std;class Student {public: Student(int n,float s):num(n),score(s){} void display(); private: int num; float score; };void Student::display() {cout<<num<<" "<<score<<endl;}int main(){Student stud[5]={ Student(01,66),Student(02,82),Student(03,88), Student(04,72),Student(05,96)}; Student *p=stud; for(int i=0;i<=2;p=p+2,i++) p->display(); return 0; }
0 0
- 第4章 第4题
- 第2章第4题
- 第2章 第4题
- 第3章 第4题
- 第4章 第1题
- 第4章 第2题
- 第4章 第3题
- 第4章 第5题
- 第4章 第6题
- 第4章 第7题
- 第5章第4题
- 第7章第4题
- 第7章 第4题
- 第10章第4题
- p27第4题
- 第一章第4题
- 第4题作业
- P51 第4题
- cookie的设置与销毁
- Eclipse中显示文件字符乱码
- tomcat容器中使用JNDI访问外部openLDAP提供的目录服务
- poj 1182(带权并查集)
- (1.5.2.5)寻找最大的K个数
- 第4题
- shrio
- cocos2dx 内置粒子简单应用
- 云计算的三种服务模式:SaaS/PaaS/IaaS
- 白色粉末
- 为 lua 封装 C 对象的生存期管理问题
- 通过ADT查看开发环境Android签名证书的md5和sha1值
- 类相关的知识点
- javascript基础总结(三)--Function类型