An elevator control program in C++