>> 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.
Last edited by Ancient Dragon; Sep 26th, 2007 at 9:10 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005