A
Andre
Hi all,
Can someone point out what is wrong with this tiny piece of code? I'm
compiling it with "g++ ./Main.cpp", and get the error message "error:
request for member 'konnect' in 'theSocket', which is of non-class
type 'Socket ()()'"
Thanks in advance,
Andre
#####################################
class Socket
{
public:
void konnect(){};
};
int main(int argc, char ** argv)
{
Socket theSocket();
theSocket.konnect();
return 0;
}
#####################################
Can someone point out what is wrong with this tiny piece of code? I'm
compiling it with "g++ ./Main.cpp", and get the error message "error:
request for member 'konnect' in 'theSocket', which is of non-class
type 'Socket ()()'"
Thanks in advance,
Andre
#####################################
class Socket
{
public:
void konnect(){};
};
int main(int argc, char ** argv)
{
Socket theSocket();
theSocket.konnect();
return 0;
}
#####################################