Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #include <iostream>
- #include "LinkList.h"
- using namespace std;
- int main(){
- int s;
- LinkList<int> L;
- while(1) {
- cout << "\n请选择: 1.存包 2.取包 3.清空 4.管理" << endl;
- cin >> s;
- switch(s){
- case 1:
- store(L);
- break;
- case 2:
- get(L);
- break;
- case 3:
- clearList(L);
- break;
- case 4:
- displayList(L);
- break;
- default:
- cout << "Invalid operator!";
- }
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.