Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is it better to use a class or struct in this case? Pin
CPallini7-Jul-09 2:04
mveCPallini7-Jul-09 2:04 
GeneralRe: Is it better to use a class or struct in this case? Pin
«_Superman_»7-Jul-09 2:09
professional«_Superman_»7-Jul-09 2:09 
GeneralRe: Is it better to use a class or struct in this case? Pin
CPallini7-Jul-09 2:31
mveCPallini7-Jul-09 2:31 
GeneralEverytime I think I'm starting to get the basics down... I ask a stupid question.. Thanks, guys! Pin
Mike the Red7-Jul-09 2:37
Mike the Red7-Jul-09 2:37 
GeneralRe: Is it better to use a class or struct in this case? Pin
Maximilien7-Jul-09 3:27
Maximilien7-Jul-09 3:27 
GeneralRe: Is it better to use a class or struct in this case? Pin
CPallini7-Jul-09 5:40
mveCPallini7-Jul-09 5:40 
GeneralRe: Is it better to use a class or struct in this case? Pin
Rajesh R Subramanian7-Jul-09 7:26
professionalRajesh R Subramanian7-Jul-09 7:26 
GeneralRe: Is it better to use a class or struct in this case? Pin
CPallini7-Jul-09 10:34
mveCPallini7-Jul-09 10:34 
GeneralRe: Is it better to use a class or struct in this case? Pin
Rajesh R Subramanian7-Jul-09 18:03
professionalRajesh R Subramanian7-Jul-09 18:03 
GeneralRe: Is it better to use a class or struct in this case? Pin
CPallini7-Jul-09 20:50
mveCPallini7-Jul-09 20:50 
GeneralRe: Is it better to use a class or struct in this case? Pin
Rajesh R Subramanian7-Jul-09 22:14
professionalRajesh R Subramanian7-Jul-09 22:14 
QuestionVC++ win32 projects Pin
Satish Pai7-Jul-09 1:17
Satish Pai7-Jul-09 1:17 
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 
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 
if there are only two state for a condition you can use ternary operator or if-else
For more than two and something that can be handled in a few if-else blocks you can use if-else
if there are a huge number of cases use switch-case
But if you are operating on strings if-else would be the choice as switch-case won't work Smile | :)

You need to google first, if you have "It's urgent please" mentioned in your question.
Wink | ;-) _AnShUmAn_

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 

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.