codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <cstdio> class Charater1 { public: enum MotionType { STANDING = 0, RUNNING, JUMPING, DIED, MAX_MOTION_TYPE }; int a; int b; }; class Charater2 { public: enum MotionType { STANDING = 0, RUNNING, JUMPING, DIED, MAX_MOTION_TYPE }; int a; int b; MotionType motionType; }; int main() { printf("%d, %d\n", sizeof(Charater1), sizeof(Charater2)); }
Private
[
?
]
Run code
Submit