Description:
#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
To Search:
File list (Check if you may need any files):
200993010_刘欢_0910(日)\main.cpp
200993010_刘欢_0910(日)