>> i don't know is it correct
Compile and test it and find out if its correct or not.
1. There is no need for the second and third parameters to that function and possibly not even the first parameter. You can make all those parameters local to that function because the calling function will not be able to see them.
2. Delete the return 0 last line because void functions to not return anything.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343