![](https://img-blog.csdnimg.cn/20190918140158853.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
算法设计课
算法设计课代码
Biangbangbing
这个作者很懒,什么都没留下…
展开
-
学生留校做老师
#include<iostream>#include<string>#include<cstdlib>#include<ctime>using namespace std;class Student{private: int num; string name; char sex; float score;...原创 2019-12-15 20:24:51 · 287 阅读 · 0 评论 -
矩阵计算
#include <iostream>#include <cstdlib>using namespace std;class matrix{private: int rows, cols; int **p;public: matrix(); matrix(int &M, ...原创 2019-12-01 20:48:23 · 240 阅读 · 0 评论 -
Complex类
#include<iostream>#include<algorithm>using namespace std;class Complex{private: int sb; int xb;public: Complex(); Complex(int ,int); Complex(Complex&); v...原创 2019-12-01 20:51:10 · 379 阅读 · 0 评论 -
寻找共和国同龄人
#include<string>using namespace std;class Birth{private: int year; int month; int day;public: Birth(){} Birth(int,int,int); void input(int,int,int); void print()...原创 2019-12-15 20:45:31 · 470 阅读 · 0 评论 -
约瑟夫问题(链表)
#include <iostream>using namespace std;class person{private: int no; /* 人的编号 */ person *next; /* 指向相邻的下一个人 */public: person(int num) ...原创 2019-12-01 20:45:00 · 238 阅读 · 0 评论 -
销售数据统计
#include<iostream>using namespace std;float discount;class Assistant{private: int num; int quantity; float price;public: Assistant(){} void input(int,int,float); fl...原创 2019-12-15 20:03:06 · 690 阅读 · 0 评论 -
自定义图形层次系统
#include<iostream>#include<iomanip>const float pai=3.14;using namespace std;class Shape{public: virtual float has_s()=0; virtual float has_v()=0;};class Circle:public Shape...原创 2019-12-15 21:06:04 · 158 阅读 · 0 评论 -
学生信息输出
@TOC在这里插入代码片#include<iostream>#include<string>#include<iomanip>using namespace std;class Student{private: string code; float score;public: Student(){} Student...原创 2019-12-15 19:50:51 · 779 阅读 · 0 评论 -
及格学生信息输出
#include<iostream>#include<string>#include<iomanip>using namespace std;class Student{private: string name; float score;public: Student(){} Student (string,floa...原创 2019-12-15 19:53:25 · 467 阅读 · 0 评论 -
老师职工多重身份
#include<string>#include <iostream>using namespace std;//***** 1、Teacher类 *****//class Teacher{public: //声明Teacher类构造函数 Teacher(); Teacher(stri...原创 2019-12-15 21:10:39 · 334 阅读 · 0 评论