All pastes #782165 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-11-19 03:32 UTC
rendered paste body
#ifndef FLOWLIST#define FLOWLISTstruct ListItem{	int year;	double flow;};struct Node{	ListItem item;	Node *next;};class FlowList{	public:		FlowList();		FlowList(const FlowList& source);		~FlowList();		FlowList& operator = (const FlowList& rhs);		double average() const;		double median() const;		void insert(const ListItem& itemA);		void remove(const ListItem& itemA);		int count() const;		void display();		void export();	private:		Node *headM;		void copy(const FlowList& source);		void destroy();};#endif