Posts: 375
Threads: 117
Joined: Feb 2009
Reputation:
0
-> Why use !strcmp, !strlen, etc... ?
-> What's the diference between static and new. ( i.g : new gTeam[MAX_PLAYERS]; static gTeam[MAX_PLAYERS];
Help? *_*
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
When you put ! in front of things it means "false"... when a function returns 0 (false) and you have ! infront of that function, it becomes true.
For example, strlen returns false when the string length is 0. So:
!strlen("") = true
strlen("") = false
Posts: 375
Threads: 117
Joined: Feb 2009
Reputation:
0
Yes, and what about static and new gteam?
Posts: 870
Threads: 26
Joined: Mar 2009
Reputation:
0
Aha that answers it .. Thanks Jamesy