新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

C++重构string-创新互联

date:

创新互联专业为企业提供印台网站建设、印台做网站、印台网站设计、印台网站制作等企业网站建设、网页设计与制作、印台企业网站模板建站服务,10多年印台做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

2022/12/21        发布v1.0.0版本

2022/12/22        发布v1.1.0版本

v1.0.0:

str.h

#ifndef TEST003_STR_H
#define TEST003_STR_H
#includeusing namespace std;
struct str
{
    vectorv;
    str();
    void input();
    void getline();
    void output();
    int size();
    void erase(const int,const int);
    void erase_Chinese(const int,const int);
    int find(const char*,const int);
    void insert(const int,const char*);
    void insert(const int,const int,const char);
    void clear();
    str substr(const int,const int);
    str operator+(const str&);
    bool operator==(const str&);
    str operator=(const char*);
    str operator=(const str&);
    bool operator<(const str&);
    bool operator>(const str &y);
    char operator[](const int &y);
};
//函数即将更新
#endif //TEST003_STR_H

str.cpp

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


本文标题:C++重构string-创新互联
URL分享:http://www.wjwzjz.com/article/dshdoj.html
在线咨询
服务热线
服务热线:028-86922220
TOP