文件名称:wordchose
介绍说明--下载内容均来自于网络,请自行研究使用
进行自负的匹配,-
#include<iostream.h>
#include <string>
using namespace std
class String
{
private:
int size
char *chr
public:
String(char* temp)
{
size=strlen(temp)
chr =new char[size+1]
strcpy(chr,temp)
}
String(){}
int Get_Size()
{
return size
}
char* Get_Chr()
{
return chr
}
String& insert1 ( int pos1, String& str )
String& insert2 ( int pos1, const char* s, int n )
String& erase ( int pos=0, int n =0 )
String& replace1 ( int pos1, int n1, String& str )
String& replace2 ( int pos1, int n1, const char* s, int n2 )
void swap ( String& str )
String& operator+= ( String& str )
String& operator+= ( const char* s )
int find1 ( String& str, int pos = 0 ) const
int find2 ( const char* s, int pos=0, int n=0 ) const
~String()
{
de
#include<iostream.h>
#include <string>
using namespace std
class String
{
private:
int size
char *chr
public:
String(char* temp)
{
size=strlen(temp)
chr =new char[size+1]
strcpy(chr,temp)
}
String(){}
int Get_Size()
{
return size
}
char* Get_Chr()
{
return chr
}
String& insert1 ( int pos1, String& str )
String& insert2 ( int pos1, const char* s, int n )
String& erase ( int pos=0, int n =0 )
String& replace1 ( int pos1, int n1, String& str )
String& replace2 ( int pos1, int n1, const char* s, int n2 )
void swap ( String& str )
String& operator+= ( String& str )
String& operator+= ( const char* s )
int find1 ( String& str, int pos = 0 ) const
int find2 ( const char* s, int pos=0, int n=0 ) const
~String()
{
de
(系统自动生成,下载前可以参看下载内容)
下载文件列表
200993010_刘欢_0910(日)\main.cpp
200993010_刘欢_0910(日)
200993010_刘欢_0910(日)