hi guys!
someone can tell me how can imakeke this thing:?
suppose:
class a
{
public:
int b;
a();
}
a::a(){};
a my;
float b;
//how can I add a casting C++ manner to float wrapped type?
//in practice : how can i perform this:
b = float(my);
???
someone can tell me why-download my program-:
1) if i set NumperoOggetti as static-put this word in the NumeroOggetti class definition- the program can't resolve exteral link and gives so this error?
how do i solve this problem? putting external somewhere ? where?
2) if i set :
class b
{public:
const int a;
b();
}
b::b(){ a = 10; // it doesn't work,a const type value can't
//be changed and so ,how do I initialize it?
//puttng equal sign in the class this way: const int a = 10;
//is not allowed eather. so???
//another question:
-suppose function:
int * pluto()
{
int b=10;
return &b
}
but the adress returned point to the stack?
and so, once the function is executed the stack is popped and the address point to a "deallocated" value?
thanks for any help...
and if you send me an email response [email protected]
THANKS