OOP HomeWork

This commit is contained in:
e2hang
2025-08-11 00:01:30 +08:00
commit e8a5ca2363
119 changed files with 3187 additions and 0 deletions

23
oop_hw4/hw8/main.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <iostream>
#include "page.h"
using std::cin;
using std::cout;
using std::endl;
int main() {
Paginate pager(13);
for (int i = 1;i <= 13;i++)
{
//i<><69>ǰҳ<C7B0><D2B3>13<31><33>ҳ<EFBFBD><D2B3>
pager.setPage(i).show();
}
cout << "START MOVING...." << endl;
pager.setPage(5).show();
pager.next().show();
pager.prev().show();
//ֱ<>ӷ<EFBFBD>
pager.nextN().show();
pager.next().show();
pager.prevN().show();
return 0;
}