/////////////////////////////////////////////////////////////////////////////////////////////////
// (C)Copyright 2002-2003 Liu ZhenMing(cs_lzm) //
// All Right Reserved //
// Computer Science Department //
// HongKong University of Science and Technology //
// //
//Redistrubution and use in source (source code> and binary(object code) forms, with or without//
//modification after Feb. 21st are permitted provided that the following conditions are met: //
//1. Redistrubuted source code must retain the above copyright notice, this list of conditions //
// and the disclaimer below //
//2. Redistributed object code must reproduce the above copyright notice, this list of //
//conditions in the documentation and the disclaimer below and/or other material provided with //
// the distrubution //
//3. Redistribution of any modified code must be labeled //
// //
//THIS SOURCE CODE IS ONE POSSIBLE SOLUTION FOR THE COMP171(2003 SPRING) PROGRAMMING ASSIGNMENT//
//1A. LIU ZHENMING DOES NOT WARRANT THAT THE OPERATIONS/FUNCTIONS/CLASSES CONTAINTED IN THIS //
//SOURCE WILL MEET THE USER'S REQUIREMENTS AND HE IS UNDER NO OBLIGATION TO MAINTAIN, CORRECT, //
//UPDATE, CHANGE, MODIFY, OR OTHERWISE SUPPORT THIS SOURCE FILE //
// //
// NO USAGE OF THIS SOURCE(SOURCE CODE) IS PERMITTED BEFORE FEB 21ST 2003 //
// //
/////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////The define of List, ListItr, ListNode////////////////////
//The basic elements inside a polynomial, including the co-eficient and the exponent
//coefficient type can be of template
template <class COEF_T>
class Poly_Elem_T
{public:
COEF_T _ce;
int _exp;
friend void Output<COEF_T>(const Poly_Elem_T<COEF_T>& rhs, ostream& os );
};
template <class Entry_T>
class List_T;
template <class Entry_T>
class ListItr_T;
template <class COEF_T>
class Polynomial_T;
template <class Entry_T>
class ListNode_T
{
//Function Area
#ifdef DEBUG_LISTNODE_T
//Make the constructor available universally accessable during the debug
public:
Mr. Liu Zhen Ming is a full time Under-graduate student in the Department of Computer Science, at Hong Kong University of Science and Tech. Before joining UST, he was a student in 96 Experimental Class at Shenzhen Middle School (1996-2001).
Mr. Liu now is one of the Under-Graduate Class-Representatives in CS Department. He is also a member of HKUST International Collegiate Programming Contest Team.