SHARE
TWEET

main.cpp

qaqwq Sep 22nd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include "LinkList.h"
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.    int s;
  8.    LinkList<int> L;
  9.    while(1) {
  10.       cout << "\n请选择: 1.存包   2.取包   3.清空   4.管理" << endl;
  11.       cin >> s;
  12.       switch(s){
  13.          case 1:
  14.             store(L);
  15.             break;
  16.          case 2:
  17.             get(L);
  18.             break;
  19.          case 3:
  20.             clearList(L);
  21.             break;
  22.          case 4:
  23.             displayList(L);
  24.             break;
  25.          default:
  26.             cout << "Invalid operator!";
  27.       }
  28.    }
  29. }
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. OK, I Understand
 
Top