Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

c++ variable to constant

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.

Name: Anonymous 2011-12-29 18:40

>>4

what's the url? www.fuckingstackoverflow.com doesn't exist? I tried www.fucking-stack-overflow.com 2. No success.

Name: Anonymous 2011-12-29 19:00

>>5
Ask fucking google http://stackoverflow.com/

Don't change these.
Name: Email:
Entire Thread Thread List