Remove the two 'else' statements and just use the 'if' and it should be what you want.
Type: Posts; User: Caverage
Remove the two 'else' statements and just use the 'if' and it should be what you want.
yes, a pointer is a 'type' but also a 'variable'.
int* p, i //looks as if they are both pointers at a glance
int *p, i //makes more sense, easier to read
what about .good()
So why does the code work?
class foo{
public:
void fun(){ /* do something */ };
};
int main(){
foo *pF;
pF->fun();