also, replace iostream.h and stdlib.h for <iostream> and <stdlib>. These are the standard C++ headers.
<stdlib> should be <cstdlib>