Files
OOP-Cpp/oop_hw4/hw8/main.cpp
2025-08-11 00:01:30 +08:00

23 lines
458 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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当前页13总页数
pager.setPage(i).show();
}
cout << "START MOVING...." << endl;
pager.setPage(5).show();
pager.next().show();
pager.prev().show();
//直接翻5页
pager.nextN().show();
pager.next().show();
pager.prevN().show();
return 0;
}