OS course, homework dealing with sub-processes, written in C++ (my first program in C++)