Files
Avancerad_CPP/Lab6/str.h
2026-03-05 13:16:26 +01:00

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