Example #1
0
// Assign value of right operand to left operand.
void list::operator=(list& L) {
	if (N < L.N) {
		N = L.N;
		delete [] next; next = new int[L.N+1];
		first = last = Null;
		for (int i = 1; i <= N; i++) next[i] = -1;
		next[Null] = Null;
	} else clear();
	for (int i = L(1); i != Null; i = L.suc(i))
		(*this) &= i;
}