Since the pointer is assumed to be non-NULL in the function anyway, it would be even better to use a reference.
void moveTortoise(int& position)
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: D_Drmmr Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |