----------封装
寂寂寂寂寂蝶丶
这个作者很懒,什么都没留下…
展开
-
类对日期date的封装
类对日期date的封装主函数#include "stdafx.h"#include using namespace std;#include "Date.h"using namespace Space;int _tmain(int argc, _TCHAR* argv[]){ Date d(2008,8,8); if (d.isLeapYear())原创 2017-12-01 10:22:15 · 494 阅读 · 0 评论 -
类对链表(list)的封装
类对链表(list)的封装主函数#include "stdafx.h"#include using namespace std;#include "List.h"int _tmain(int argc, _TCHAR* argv[]){ List list; list.createList(); for (int i = 0; i < 10; i++)原创 2017-12-02 09:56:05 · 271 阅读 · 0 评论 -
类对栈实现的封装
类对栈实现的封装主函数#include "stdafx.h"#include "Stack.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ Stack st; st.init(); for (char v = 'a'; !st.isFull() && v != 'z'+1;原创 2017-12-02 09:57:53 · 506 阅读 · 0 评论