last minuting C++