C++课程设计 (字符串操作).docVIP

  • 16
  • 0
  • 约1.64万字
  • 约 17页
  • 2017-12-17 发布于河南
  • 举报
C课程设计(字符串操作)

#include iostream.h #include stdio.h #include stdlib.h #include string.h #include windows.h #include stdarg.h //定义参数个数可变的函数时用到 #define MAX_FSTRING_LENGTH 250 //用作数组长度 //Variant Class class FString { // 字符串类定义 private: char *sString; //String data must be first (to look like string) int nlength; public: //Constructor FString(); //缺省构造函数 FString(char *str);//新增构造函数,用字符串常量初始化字符串对象 FString(FString );//新增拷贝构造函数,用类的对象初始化 ~FString(){} //新增析构函数,释放字符串对象所占用的空间 //Public Methods void DelRepeat(); FString AddStart(FString str,int start); FString Mid(const int nStart,const int nLe

文档评论(0)

1亿VIP精品文档

相关文档