作业4.18
来源:互联网 发布:idea web sql 编辑:程序博客网 时间:2024/05/25 23:59
#include<iostream>using namespace std;int en=1; class Student { int number; float english; float math; float chinese; public: Student(int n,float e) { number=n; english=e; } void max(Student *p){int ma=p->english;for(int i=0;i<6;i++,p++){ if(ma<p->english) en++; } } }; void print() { cout<<"英语最高得分学生是:"<<en<<"号"<<endl; } int main() { Student s[6]={Student(1,90),Student(2,80), Student(3,78),Student(4,89), Student(5,79),Student(6,79)}; Student *p; p=s;print();return 0;}
0 0
- 作业4.18
- 作业4.18
- 作业4.18
- 作业4.18
- 作业4.18
- 作业4.17 4.18
- c++作业4.18
- C++作业4.18
- 第四章作业4.18
- 小白4.18作业
- 作业
- 作业
- 作业
- 作业
- 作业
- 作业
- 作业
- 作业
- GDB多进程调试
- SSL/TLS协议运行机制的概述
- Quartz任务调度快速入门
- try-catch-finally执行顺序
- Apache Nutch 1.7 单机安装
- 作业4.18
- MFC中定义全局变量和全局函数的方法
- 常用加密算法的Java实现总结(二)
- APNS编程----iOS真机测试消息推送
- ActiveMQ使用经验总结
- 《编程珠玑》笔记一
- 转载
- struts filter
- 13个SQL优化技巧