Playing with structures in C++