随笔分类 - C++
摘要:只完成一半 先记录一下 答题和通讯录管理系统差不多,不同的是使用到 了类的多态,使用文件存储。还有一些技巧性,规范性的东西。 根据职责不同,不同职责的人继承一个抽象类。这个反而不重要。 定义一个Manage类,实现核心功能,增删改查等。重要。 由于涉及到了数据的保存,所以让我长了一个很大的见识就是将
阅读全文
摘要:#include <iostream> #include <string> using namespace std; class Student { public: Student() { cout << "默认构造函数" << endl; }; Student(int a, int s) { co
阅读全文
摘要:#include <iostream> #include <string> #define MAX 500 using namespace std; struct person { string name; int age; }; struct contact { person persons[MA
阅读全文