Добавил:
Upload
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#ifndef LIST_H
#define LIST_H
class Node
{
public:
double data;
int value;
Node* next;
Node();
Node (double &data, Node* next=0);
};
class list
{
private:
Node* head;
int nodes;
public:
list();
~list();
int size1();
bool empty1();
Node* create(double value);
Node* insert1(double value, Node* where);
int max_element1();
void remove1(Node* where);
void clear();
void print();
};
#endif // LIST_H_INCLUDED