Data structure - linear table sequential storage structure (C++ code)