Then try to debug again. Particularly your function void minCost(int city) seems to need being debugged!
And BTW, why are so sure that the nearestCity will be (and not too late!) exactly 999?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |