第7题
来源:互联网 发布:苹果设置软件信任 编辑:程序博客网 时间:2024/05/13 22:40
#include <iostream>using namespace std;class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() {cout<<num<<" "<<score<<endl;} private: int num; float score; };int main(){Student stud(101,78.5); Student *p=&stud; p->display(); p->change(101,80.5); p->display(); return 0;}
0 0
- 第1章 第7题
- 第3章 第7题
- 第4章 第7题
- 第7章 第1题
- 第7章第1题
- 第7章第2题
- 第7章第3题
- 第7章第4题
- 第7章 第2题
- 第7章 第3题
- 第7章 第4题
- 第7章 第5题
- 第7章 第6题
- 第7章第5题
- 第7章第6题
- 第10章第7题
- P051第7题
- P51 第7题
- C#异常处理
- The Most Important Algorithms(带翻译)
- openstack学习笔记 ---NTP
- 黑马程序员-java面向对象编程基础知识
- 电脑屏幕无信号,鼠标键盘无信号的问题分析
- 第7题
- 第三章第十二题
- 02-线性结构1. Reversing Linked List (25)
- HDU2010省赛集训队选拔赛(校内赛) H
- linux系统下修改文件夹目录权限FTP服务器搭建
- 省选总结
- WordCount 分析
- 蓝桥杯 入门训练 Fibonacci数列
- 数据库设计三大范式