#include #include #include #include using namespace std; using namespace hgl; void out_data_chain(DataChain *dc) { DataChain::ChainNode *start =dc->GetStartNode(); DataChain::ChainNode *end =dc->GetEndNode(); DataChain::ChainNode *node =start; cout<<"Data Chain: "; while(node) { cout<<"["<start<<","<count<<"]"; if(node==end) break; node=node->next; } cout<GetStart()<<","<GetCount()<<"] "; } out_data_chain(&dc); } cout<<"---------------------------------------------------------------------------------"<