头文件
#ifndef STRING_H
#define STRING_H
#include <iostream>
using namespace std;
class String
{
public:
String(const char * str = NULL);
String(const String &str);
~String();
String operator+(const String& str) const;
String& operator=(const String& str);
String& operator+=(const String& str);
bool operator==(const String& str) const;
char& operator[](int n);
size_t size() const;
const char* c_str() const;
friend istream& operator>>(istream& is,String& str);
friend ostream& operator<<(ostream& os,String& str);
private:
int m_nLength;
char