OOP HomeWork
This commit is contained in:
23
oop_hw4/hw8/main.cpp
Normal file
23
oop_hw4/hw8/main.cpp
Normal 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>5ҳ
|
||||
pager.nextN().show();
|
||||
pager.next().show();
|
||||
pager.prevN().show();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user