These results relate to a mac computer. I use a computer PC. Anyways, i don't know c++ very well, it would very helpful if someone can give me a coding from start to end of the program because i have tried many programs but errors occur about something or the other is not declared and i am not able to find which header or function, etc. i should use.