摘要:
package u13; class Coordinates { private int x; private int y; public Coordinates(int x, int y) { this.x = x; this.y = y; } public int getX() { return 阅读全文
摘要:
#include <iostream> #include <string> #include <vector> using namespace std; //棋子颜色 enum PieceColor { BLACK, WHITE }; //棋子位置 struct PiecePos { int x; 阅读全文
摘要:
package u12; import java.util.Scanner; public class Client { public static void main(String[] args) { MainFrame f = new MainFrame(); f.fun(); } } pack 阅读全文
摘要:
#include <iostream> //子系统:内存 class Memory { public: Memory() {} void selfCheck() { printf("内存自检\n"); } }; //子系统:CPU class CPU { public: CPU() {} void 阅读全文
摘要:
#include <iostream> #include <string> #include <list> using namespace std; class Phone { public: Phone() {} virtual ~Phone() {} virtual void ShowDecor 阅读全文
摘要:
package u11; public class ComplexPhone extends Changer{ public ComplexPhone(Phone phone) { super(phone); System.out.println("变成高级手机"); flash(); } publ 阅读全文
摘要:
1. 对系统类进行描述,确定属性和方法。 2. 分析系统类模型,找出类之间的关系并画出类图。 3. 绘制“取消会议(Remove Meeting )”的时序图。 阅读全文
摘要:
1. 导入数据展示: 2. 文章统计 3. 文章分类 阅读全文
摘要:
package u10; public class Client { public static void main(String a[]) { AbstractFile obj1, obj2, obj3, obj4, obj5; Folder plate1, plate2, plate3; obj 阅读全文
摘要:
#include <iostream> #include <string> #include <list> using namespace std; class Component { protected: string name; public: Component(string name) :n 阅读全文