Topic: C++ Help!  (Read 3475 times)

0 Members and 1 Guest are viewing this topic.

Iceman

  • Guest
Re: C++ Help!
« Reply #40 on: May 10, 2004, 08:26:02 pm »
Its not so much the concept as the implementation. I don't have the time to learn a new idea right now AND finish this. So I think anyways.  

TalonClaw

  • Guest
Re: C++ Help!
« Reply #41 on: May 11, 2004, 08:42:55 am »
Quote:

Its not so much the concept as the implementation. I don't have the time to learn a new idea right now AND finish this. So I think anyways.  




Towelie is right.  If you examine the code where you are doing the same thing for each player the same code is typed in over and over again.  You could make a function with this code and pass in the player name.  The function would then do the tasks needed for the player passed into the function.

But don't sweat it. Just do the best you can for now and get it done.  The good stuff can come later and you will see how to make your code more efficient.