However i am getting the error code, expected unqualified-id before numeric constant, on line two. has any one got any ideas on how this can be solved?

The easier you make it to read and copy the code the more likely it is that you will get help

Please follow the advice given in the link below when posting code , use code tags and post the code here