24 lines
367 B
C++
24 lines
367 B
C++
#ifndef __STR_H
|
|
|
|
#define __STR_H
|
|
|
|
|
|
|
|
#include <iostream.h>
|
|
|
|
|
|
|
|
class Str{
|
|
|
|
|
|
|
|
friend istream& operator >> (istream& is, Str &s);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Str();
|
|
|
|
Str(const Str& src);
|
|
|
|
Str(char* _str);
|
|
|
|
~Str();
|
|
|
|
char* getStr(){return str;}
|
|
|
|
bool operator==(Str &src);
|
|
|
|
Str& operator =(const Str &src);
|
|
|
|
|
|
|
|
private:
|
|
|
|
char* str;
|
|
|
|
int curPos;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif |