S
sieg1974
Hi,
the methods of the class Formater are defined like this
class Formater
{
public:
StringFormarter();
~StringFormarter();
int setLink( char * newLink );
char * getReference();
private:
char theLink[ 128 ];
};
and the method getDirectoryName is the following one
char * StringFormarter::getDirectoryName()
{
char theDirectoryName[ 128 ];
...
theHostName = this.getHostName();
...
}
Could someone tell me what is wrong with "theHostName =
this.getHostName();", and what is an aggregative type? When I compile
it, the compiler ( gcc ) shows the following error message
request for member getHostName in this, which is of non-aggregate type
Formater*
Thanks a lot,
Andre
the methods of the class Formater are defined like this
class Formater
{
public:
StringFormarter();
~StringFormarter();
int setLink( char * newLink );
char * getReference();
private:
char theLink[ 128 ];
};
and the method getDirectoryName is the following one
char * StringFormarter::getDirectoryName()
{
char theDirectoryName[ 128 ];
...
theHostName = this.getHostName();
...
}
Could someone tell me what is wrong with "theHostName =
this.getHostName();", and what is an aggregative type? When I compile
it, the compiler ( gcc ) shows the following error message
request for member getHostName in this, which is of non-aggregate type
Formater*
Thanks a lot,
Andre