![]() |
| | #1 |
| Registered User Join Date: Aug 2001
Posts: 1,301
| Enjoy a laugh at my expense (Coding mischief) Code: static public void runTick()
{
Events.Add(Sim.numTicks + ": System population is " + Characters.Count + ".\n");
int i = 0;
Character c = Characters[i];
while (c != null)
{
try
{
if (c.runTick())
{
c = Characters[++i];
}
else
{
c = Characters[i];
}
}
catch (Exception e)
{
break;
}
}
Sim.numTicks++;
}
|
| Aran is offline | |
| | #2 |
| Registered User Join Date: Nov 2007
Posts: 248
| Well this is just ha-LARIOUS! Who says programmers have no sense of humor?
__________________ I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo |
| NeonBlack is online now | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What beverage do you enjoy while coding? | Invincible | A Brief History of Cprogramming.com | 28 | 02-15-2002 09:16 PM |