simulation of arrival/departure in C++