OOP HomeWork
This commit is contained in:
20
oop_hw4/hw8/page.h
Normal file
20
oop_hw4/hw8/page.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
class Paginate {
|
||||
private:
|
||||
int page_total;
|
||||
int page_now;
|
||||
public:
|
||||
Paginate();
|
||||
Paginate(int n);
|
||||
Paginate& setPage(int n);
|
||||
void show();
|
||||
Paginate& next();
|
||||
Paginate& prev();
|
||||
Paginate& nextN();
|
||||
Paginate& prevN();
|
||||
};
|
Reference in New Issue
Block a user