Name:
Anonymous
2011-12-29 18:03
Guys, newfag question, in c++ there is a way to do something like
switch(variable){
case other_variable:
}
Name:
Anonymous
2011-12-29 18:09
>>1
jump table via array of function pointers
Name:
Anonymous
2011-12-29 18:17
>>1
you gotta use an if(variable == other_variable) for that, unless the value of other_variable is known at compile time, you can't do any better.
Name:
Anonymous
2011-12-29 18:21
Ask fucking stackoverflow.