You know it's been a long day when...
I haven't been around much due to school, but here's snipit of code I produced today and actually expected it to work:
#define MAX_CLIENTS 9
int nRegClients = MAX_CLIENTS
if(nRegClients < MAX_CLIENTS)
add new client
else
no room
For some reason I couldn't figure out why it was always false. I guess it's time to take a break when I start writing code like that.
I haven't been around much due to school, but here's snipit of code I produced today and actually expected it to work:
#define MAX_CLIENTS 9
int nRegClients = MAX_CLIENTS
if(nRegClients < MAX_CLIENTS)
add new client
else
no room
For some reason I couldn't figure out why it was always false. I guess it's time to take a break when I start writing code like that.