Visual Studio 2008, teacher too our computers are the same. Yes it did compile and it works perfect but I don't understand why and I dont know if i am required to typecast as an int, and is the code stable?