i found a problem on cc suggestion list .
here is the codes.
for the variable stt, the suggestion list have no
member funciton operator = ,operator +,see the attachment snap1
and the class tree have these function .see the attachment snap2.
anyone has comment on this.
#include <iostream>
using namespace std;
class Strings{
public:
Strings();
Strings(char *s);
Strings(const Strings &s);
Strings& operator = (const Strings& s){
};
Strings& operator + (const Strings& s){
};
Strings& operator + (const char *s){
};
~Strings(){
if(str != NULL)
delete [] str;
cout<<"~Strings() is called"<<endl;
}
void display(){
};
private:
char *str;
};
Strings stt;
stt.|
int main()
{
cout << "Hello world!" << endl;
return 0;
}
[attachment deleted by admin]