2021年5月23日
摘要: 顺序表2021-05-23 注意:每一个代码请对照教材相应的图,这样方便理解 严格对照教材 顺序表结构定义 const int Maxsiez=100; typedef struct { DataTpye data[Maxsize]; int length; } SeqList;//顺序表类型名为S 阅读全文
posted @ 2021-05-23 16:03 HuJiao粉 阅读(139) 评论(0) 推荐(0)
2021年4月17日
摘要: or.cpp #include<iostream>using namespace std;int main(){ cout<<"This program may reformat your hard disk\n" "and destroy all your data.\n" "Do you wis 阅读全文
posted @ 2021-04-17 22:17 HuJiao粉 阅读(84) 评论(0) 推荐(0)
摘要: if.cpp #include<iostream>using namespace std;int main(){ char ch; int spaces=0; int total=0; cin.get(ch); while (ch!='.') { if (ch==' ') ++spaces; ++t 阅读全文
posted @ 2021-04-17 22:03 HuJiao粉 阅读(57) 评论(0) 推荐(0)
2021年3月25日
摘要: stock20.h #ifndef STOCK20_H_#define STOCK20_H_#include<string> class Stock{private: std::string company; int shares; double share_val; double total_va 阅读全文
posted @ 2021-03-25 14:02 HuJiao粉 阅读(47) 评论(0) 推荐(0)
摘要: stock10.h #ifndef STOCK10_H_#define STOCK01_H_#include<string> class Stock{private: std::string company; long shares; double share_val; double total_v 阅读全文
posted @ 2021-03-25 14:01 HuJiao粉 阅读(73) 评论(0) 推荐(0)
2021年3月23日
摘要: 11.8-4 // prototype friend Stonewt operator*(double mult, const Stonewt & s); // definition — let constructor do the work Stonewt operator*(double mul 阅读全文
posted @ 2021-03-23 22:58 HuJiao粉 阅读(19) 评论(0) 推荐(0)
摘要: stonewt.h #ifndef STONETW_H#define STONETW_Hclass Stonewt{private: enum {Lbs_per_stn=14}; int stone; double pds_left; double pounds;public: Stonewt(do 阅读全文
posted @ 2021-03-23 14:09 HuJiao粉 阅读(36) 评论(0) 推荐(0)
2021年3月21日
摘要: mytime2.h #ifndef MTTIME2_H#define MYTIME2_H class Time{private: int hours; int minutes;public: Time(); Time(int h,int m=0); void AddMin(int m); void 阅读全文
posted @ 2021-03-21 15:03 HuJiao粉 阅读(45) 评论(0) 推荐(0)
摘要: mytime1.h #ifndef MTTIME0_H#define MYTIME0_H class Time{private: int hours; int minutes; public: Time(); Time(int h,int m=0); void AddMin(int m); void 阅读全文
posted @ 2021-03-21 14:57 HuJiao粉 阅读(66) 评论(0) 推荐(0)
摘要: mytime0.h #ifndef MTTIME0_H#define MYTIME0_H class Time{private: int hours; int minutes; public: Time(); Time(int h,int m=0); void AddMin(int m); void 阅读全文
posted @ 2021-03-21 14:50 HuJiao粉 阅读(72) 评论(0) 推荐(0)