Just how old is the course you are doing / book you are reading? <iostream.h> was deprecated in 1998, with the inclusion of namespaces and various other things. Also, just on a side note, you should really give reasonable variable names, so you can understand what is going on.