链式串类LinkString源码:
#pragma once class StringNode { public: char element; StringNode *next; }; class LinkString { public: LinkString(void) { top = new StringNode(); } LinkString(char * s2) { top = new StringNode(); *this = s2; //运算符=重载,用char串赋值 } //用char串赋值 void operator=(char * s2) { StringNode * temp; temp = top; for(int i =0;s2[i]!='