Link to home
Start Free TrialLog in
Avatar of meow00
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 ........
ASKER CERTIFIED SOLUTION
Avatar of fsign21
fsign21

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial