meow00
asked on
functions in a struct ?
Hi C++ Expert,
Is that the same to define a function inside and outside a struct definition ? i.e.
------------------------
struct A{
int f1(){ return 0;}
int f2() ;
};
int A::f2(){return 0;}
------------------------
what's the difference between f1() and f2() ?? Thanks ........
Is that the same to define a function inside and outside a struct definition ? i.e.
------------------------
struct A{
int f1(){ return 0;}
int f2() ;
};
int A::f2(){return 0;}
------------------------
what's the difference between f1() and f2() ?? Thanks ........
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.