11 2022 档案

摘要:在“虚拟聊天室”实例中增加一个新的具体聊天室类和一个新的具体会员类,要求如下: 1. 新的具体聊天室中发送的图片大小不得超过20M。 2. 新的具体聊天室中发送的文字长度不得超过100个字符。 3. 新的具体会员类可以发送图片信息和文本信息。 4. 新的具体会员类在发送文本信息时,可以在信息后加上时 阅读全文
posted @ 2022-11-20 08:18 今天又双叒叕在敲代码 阅读(37) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<list> #include<string> using namespace std; class Observer{ protected: string name; public: virtual void buy()=0; virtual 阅读全文
posted @ 2022-11-13 15:21 今天又双叒叕在敲代码 阅读(24) 评论(1) 推荐(1) 编辑
摘要:当股票的价格上涨或下降5%时,会通知持有该股票的股民,当股民听到价格上涨的消息时会买股票,当价格下降时会大哭一场。 //Observer.java package test21; public interface Observer { public void buy(); public void c 阅读全文
posted @ 2022-11-10 10:53 今天又双叒叕在敲代码 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<string> #include<vector> using namespace std; //备忘录 class Memento { private: string account; string password; string telNo 阅读全文
posted @ 2022-11-07 19:51 今天又双叒叕在敲代码 阅读(19) 评论(0) 推荐(0) 编辑
摘要:改进课堂上的“用户信息操作撤销”实例,使得系统可以实现多次撤销(可以使用HashMap、ArrayList等集合数据结构实现)。 //Caretaker.java package test20; public class Caretaker { private Memento[] array = n 阅读全文
posted @ 2022-11-05 23:28 今天又双叒叕在敲代码 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; class Memory{ public: void check(){ cout<<"内存自检"<<endl; } void off(){ cout<<"内存关闭"<<endl; } }; class Cpu{ pub 阅读全文
posted @ 2022-11-03 20:21 今天又双叒叕在敲代码 阅读(24) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示