вот код....
#include <iostream.h>
char* v;
class string
{
private:
char* data;
public:
string(char* value_)
{
int b = 0;
char value__ = ' ';
while(value__ != 0)
value__ = value_[b++];
this->data = (char*)realloc(this->data, b);
for(int c = 0; c < b; ++c)
this->data[c] = value_[c];
}
void echo()
{
cout << this->data << endl;
}
istream& operator << (istream& stream,string& obj)
{
stream << obj.data;
return stream;
}
};
string str = "123456789";
int main()
{
cout << str << endl;;
std::cin >> v;
}
что не правильно в перегрузке?