C++ pr0 programing (structs and enums)