//file SLL01.cpp
//date 04/22/2005
//author aou
//csis250.tripod.com
///////////////////////////////////////////////////////////
//includes
///////////////////////////////////////////////////////////
#include <iostream>
using namespace std;
class CInfo
{
private:
int value;
CInfo *next;
friend class CSLL;
};
class CSLL
{
private:
int n;
CInfo *first;
CInfo *last;
void initialize(void);
public:
CSLL(void); //default constructor
CSLL(int n); //create a list with given integer value
friend ostream & operator << (ostream & bob, const CSLL & list);
CSLL(char ch); //constructs based on value of ch
CSLL(int low, int high);
CSLL(int low, int high, int n);
CSLL(const CSLL &list);
void input(void);
bool insert(int x);
bool insert(const CSLL & list2);
bool operator == (const CSLL &list2);
};
void main(void)
{
cout << "Hello\n";
}
|