64,646
社区成员
发帖
与我相关
我的任务
分享
#ifndef LIST_H_
#define LIST_H_
#include <iomanip>
#include <iostream>
using namespace std;
template <class T>
class node{
public:
T data;
node *next;
};
template <class T>
class list{
public:
list();
void create();
bool isEmpty() const;
void addNode(const T t);
void deleteNode(const T t);
void deleteLast();
void display() const;
node<T> *getNode(int i);
bool find(const T t);
private:
node<T> *head;
};
#endif