Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ win32 projects Pin
«_Superman_»7-Jul-09 1:24
professional«_Superman_»7-Jul-09 1:24 
GeneralRe: VC++ win32 projects Pin
Satish Pai7-Jul-09 2:15
Satish Pai7-Jul-09 2:15 
GeneralRe: VC++ win32 projects Pin
«_Superman_»7-Jul-09 2:21
professional«_Superman_»7-Jul-09 2:21 
GeneralRe: VC++ win32 projects Pin
Satish Pai7-Jul-09 2:24
Satish Pai7-Jul-09 2:24 
Questionwhen to use switch-case and when to use if-else Pin
pandit847-Jul-09 0:10
pandit847-Jul-09 0:10 
AnswerRe: when to use switch-case and when to use if-else Pin
Rajesh R Subramanian7-Jul-09 0:28
professionalRajesh R Subramanian7-Jul-09 0:28 
AnswerRe: when to use switch-case and when to use if-else Pin
Chandrasekharan P7-Jul-09 0:32
Chandrasekharan P7-Jul-09 0:32 
AnswerRe: when to use switch-case and when to use if-else Pin
chandu0047-Jul-09 0:33
chandu0047-Jul-09 0:33 
There is no such rule.
but only comfort and ease of coding matters.
functionally, both are same if they are used as per their exact syntax.
but in switch, you can program in such a way that, multiple cases carry the same body.
it all depends on the situation to decide which one would be better.

--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.

AnswerRe: when to use switch-case and when to use if-else Pin
Roger Stoltz7-Jul-09 0:33
Roger Stoltz7-Jul-09 0:33 
AnswerRe: when to use switch-case and when to use if-else Pin
_AnsHUMAN_ 7-Jul-09 0:36
_AnsHUMAN_ 7-Jul-09 0:36 
GeneralRe: when to use switch-case and when to use if-else Pin
pandit847-Jul-09 0:41
pandit847-Jul-09 0:41 
AnswerRe: when to use switch-case and when to use if-else Pin
Rozis7-Jul-09 2:09
Rozis7-Jul-09 2:09 
QuestionGenerating "msoult.h" from "msoutl.olb" using VS2005 Pin
eight6-Jul-09 22:25
eight6-Jul-09 22:25 
AnswerRe: Generating "msoult.h" from "msoutl.olb" using VS2005 Pin
Stuart Dootson6-Jul-09 23:11
professionalStuart Dootson6-Jul-09 23:11 
QuestionCString to char Pin
MsmVc6-Jul-09 22:01
MsmVc6-Jul-09 22:01 
AnswerRe: CString to char Pin
Cedric Moonen6-Jul-09 22:08
Cedric Moonen6-Jul-09 22:08 
GeneralRe: CString to char Pin
MsmVc6-Jul-09 22:17
MsmVc6-Jul-09 22:17 
GeneralRe: CString to char Pin
Rajesh R Subramanian6-Jul-09 22:21
professionalRajesh R Subramanian6-Jul-09 22:21 
GeneralRe: CString to char Pin
Cedric Moonen6-Jul-09 22:22
Cedric Moonen6-Jul-09 22:22 
GeneralRe: CString to char Pin
David Crow7-Jul-09 3:18
David Crow7-Jul-09 3:18 
GeneralRe: CString to char Pin
Michael Schubert7-Jul-09 3:35
Michael Schubert7-Jul-09 3:35 
GeneralRe: CString to char Pin
Rajesh R Subramanian7-Jul-09 7:38
professionalRajesh R Subramanian7-Jul-09 7:38 
AnswerRe: CString to char Pin
Rage6-Jul-09 22:09
professionalRage6-Jul-09 22:09 
AnswerRe: CString to char Pin
Rajesh R Subramanian6-Jul-09 22:11
professionalRajesh R Subramanian6-Jul-09 22:11 
GeneralRe: CString to char Pin
Cedric Moonen6-Jul-09 22:14
Cedric Moonen6-Jul-09 22:14 

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.