Click here to Skip to main content
15,929,812 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Running apps remotely (CLI) Pin
See_Sharp12-Jun-09 13:30
See_Sharp12-Jun-09 13:30 
QuestionLabel flickering Pin
cherrymotion11-Jun-09 21:56
cherrymotion11-Jun-09 21:56 
AnswerRe: Label flickering Pin
Luc Pattyn12-Jun-09 2:59
sitebuilderLuc Pattyn12-Jun-09 2:59 
GeneralRe: Label flickering Pin
cherrymotion12-Jun-09 3:34
cherrymotion12-Jun-09 3:34 
GeneralRe: Label flickering Pin
Luc Pattyn12-Jun-09 3:40
sitebuilderLuc Pattyn12-Jun-09 3:40 
GeneralRe: Label flickering Pin
cherrymotion12-Jun-09 4:34
cherrymotion12-Jun-09 4:34 
GeneralRe: Label flickering Pin
Luc Pattyn12-Jun-09 4:50
sitebuilderLuc Pattyn12-Jun-09 4:50 
QuestionAvoid if else... Pin
vikasvds11-Jun-09 2:19
vikasvds11-Jun-09 2:19 
Hello,

Problem is - User can input any number, program need to take decision based on inputs.

Let suppose input is stored in variable n;
based on value of n some function will be called.
program logic can be -

if(n > 1 && n < 10 )
callfun1();
if(n > 11 && n < 20 )
callfun2();
if(n > 25 && n < 30 )
callfun3();
if(n > 33 && n < 38 )
callfun4();
if(n > 1 && n < 10 )
callfun5();
.
.
.
and so on
if(n > minlimit && n < maxlimit )
callfunX();

Is there any easy way to avoid if else chain to do similar work.
Or is there any way to change the limits in if condition at some central place something using #define.

Please provide your inputs/help to help me finding other ways to optimize programming.

Thank
Vikas

vicky

AnswerRe: Avoid if else... [modified] Pin
thoru11-Jun-09 3:17
thoru11-Jun-09 3:17 
AnswerRe: Avoid if else... Pin
led mike11-Jun-09 4:36
led mike11-Jun-09 4:36 
AnswerRe: Avoid if else... Pin
LionAM13-Jun-09 21:25
LionAM13-Jun-09 21:25 
GeneralRe: Avoid if else... Pin
vikasvds14-Jun-09 21:36
vikasvds14-Jun-09 21:36 
QuestionRun external executable file in C++ Pin
wael_r11-Jun-09 2:11
wael_r11-Jun-09 2:11 
AnswerRe: Run external executable file in C++ Pin
vikasvds11-Jun-09 2:28
vikasvds11-Jun-09 2:28 
AnswerRe: Run external executable file in C++ Pin
Luc Pattyn11-Jun-09 3:23
sitebuilderLuc Pattyn11-Jun-09 3:23 
QuestionBeginning C++/CLI Question Pin
Shadowsoal9-Jun-09 13:39
Shadowsoal9-Jun-09 13:39 
AnswerRe: Beginning C++/CLI Question Pin
N a v a n e e t h9-Jun-09 16:30
N a v a n e e t h9-Jun-09 16:30 
GeneralRe: Beginning C++/CLI Question Pin
Shadowsoal9-Jun-09 16:37
Shadowsoal9-Jun-09 16:37 
GeneralRe: Beginning C++/CLI Question Pin
N a v a n e e t h9-Jun-09 17:47
N a v a n e e t h9-Jun-09 17:47 
GeneralRe: Beginning C++/CLI Question Pin
Shadowsoal9-Jun-09 18:02
Shadowsoal9-Jun-09 18:02 
GeneralRe: Beginning C++/CLI Question Pin
N a v a n e e t h9-Jun-09 18:04
N a v a n e e t h9-Jun-09 18:04 
GeneralRe: Beginning C++/CLI Question Pin
Shadowsoal9-Jun-09 18:11
Shadowsoal9-Jun-09 18:11 
GeneralRe: Beginning C++/CLI Question Pin
Shadowsoal10-Jun-09 5:14
Shadowsoal10-Jun-09 5:14 
GeneralRe: Beginning C++/CLI Question Pin
N a v a n e e t h10-Jun-09 18:12
N a v a n e e t h10-Jun-09 18:12 
GeneralRe: Beginning C++/CLI Question Pin
Shadowsoal10-Jun-09 18:44
Shadowsoal10-Jun-09 18:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.