why the function prototype look like different as usuall.
Can I know what is difference and how to use it.
The function prototype must match the function implementation exactly. Otherwise when the compiler encounters a call to your function, it will not know how to call your function because it has not seen yet.
PLEASE USE CODE TAGS (the <> formatting button) when posting code. http://v2.cplusplus.com/articles/jEywvCM9/
It makes it easier to read your code and it also makes it easier to respond to your post.
Hint: You can edit your previous post, highlight your code and press the <> formatting button.