4.18
来源:互联网 发布:淘宝开店需要押金吗 编辑:程序博客网 时间:2024/06/05 16:07
#include<iostream> using namespace std; int a=1; class Student { int number; float english; public: Student(int n,float e) { number=n; english=e; } void max(Student *p) { int m=p->english; for(int i=0;i<6;i++,p++) { if(m<p->english) a++; } } }; void print() { cout<<"英语最高得分学生是"<<a<<"号"<<endl; } int main() { Student s[6]={Student(1,70),Student(2,36),Student(3,89),Student(4,74),Student(5,77),Student(6,80)}; Student *p; p=s; print(); return 0; }
0 0
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- 【4.18】
- 4.18
- 4.18
- 4.18
- 4.18
- 4.18
- Today 4.18
- 4.17 4.18
- cocos2d-x lua 实现状态机
- Android中的volley_4_执行网络请求的接口Network及其实现类BasicNetwork
- Servlet -- 跳转到页面后的绝对路径与相对路径的问题
- 图像编解码器
- Java集合类详解
- 4.18
- 南邮算法分析与设计实验3 回溯法
- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- int?id与id??1 的意思
- [Erlang]如何使用NIF
- dojo中tree的使用教程(一)
- druid—tomcat配置使用(个人记录勿喷。。。)
- Xcode6的新特性、iPhone6和iPhone6Plus的适配,xcode6iphone6
- POJO模式