problem with my class in c++ now with the real files
Posted: Sat Apr 21, 2007 1:11 pm
i haw a problem with my class in c++
i have a class like this
files: http://64digits.com/users/lalle_calle/Ny_mapp.zip
i have a class like this
files: http://64digits.com/users/lalle_calle/Ny_mapp.zip
Code: Select all
class connect
{
public:
void fununction1();
void fununction2();
private:
double socketadress;
};
void connect::fununction1()
{
socketadress = opengateaway("ip", port,mode)
std::cout<<socketadress<<std::endl;// now it shows the correct number
}
void connect::fununction2()
{
std::cout<<socketadress<<std::endl;// now it whill be like the variable was never set an it will give an error
and the object destructeor will automatily activate
}