Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

lab / Algor / spusok / list

.h
Скачиваний:
11
Добавлен:
20.03.2016
Размер:
429 б
Скачать
#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
Соседние файлы в папке spusok