Im really unsure about this ive searched around and its just giving me programs to automatically do this when id rather know what im doing wrong. All help is appreciated, i am also learning this from a book and when i copy and paste this exact code it works fine. However, when i write this by myself like this going through what each line does it just gives me this error all help is appreciated.

Screenshot at 01:47:14 | ScreenCloud

Original Writen by sgxmodz in C and C++ Category, the date of 25-06-2015 01:48.