The problem is not the fact you have <iostream.h> (although it should be changed to <iostream>, because that is deprecated); the real problem (and where the error lies) is that you aren't returning...