摘要:
创建复数类实现复数运算 #include<iostream> using namespace std; class Complex { double real; double image; public: Complex() { real = 0; image = 0; } Complex(int 阅读全文
摘要:
题目:定义一个学生成绩类 Score,描述学生的私有数据成员为学号(No)、姓名 (Name[8])、数学(Math)、物理(Phi)、英语(Eng)。定义能输入学生成绩的公有成员函数 Input()、 能计算学生总分的公有成员函数 Sum()、能显示输出学生成绩的公有成员函数 Show() 源码: 阅读全文