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

C / C++ / MFC

 
AnswerRe: RadioButton [modified] Pin
prasad_som22-Apr-08 3:09
prasad_som22-Apr-08 3:09 
GeneralRe: RadioButton Pin
CPallini22-Apr-08 8:08
mveCPallini22-Apr-08 8:08 
GeneralRe: RadioButton Pin
prasad_som23-Apr-08 0:03
prasad_som23-Apr-08 0:03 
GeneralRe: RadioButton Pin
CPallini23-Apr-08 0:18
mveCPallini23-Apr-08 0:18 
GeneralRe: RadioButton Pin
prasad_som23-Apr-08 1:24
prasad_som23-Apr-08 1:24 
GeneralRe: RadioButton Pin
CPallini23-Apr-08 1:36
mveCPallini23-Apr-08 1:36 
GeneralRe: RadioButton Pin
David Crow22-Apr-08 4:46
David Crow22-Apr-08 4:46 
GeneralIs this c/c++ code valid Pin
Raj Prathap21-Apr-08 23:53
Raj Prathap21-Apr-08 23:53 
<br />
int i = 10;<br />
int k = 100;<br />
switch(i)<br />
{<br />
case 0:<br />
cout << "case 0" <<endl;<br />
break;<br />
if(k == 100)<br />
{<br />
case 10:<br />
cout <<"The device type is 100 so attribute 10 is valid"<<endl;<br />
break;<br />
}<br />
else<br />
{<br />
case 100:<br />
cout <<"attribute 100 is there" << endl;<br />
break;<br />
}<br />
break;<br />
default:<br />
cout <<"default"<<endl;<br />
}<br />


Please confirm whether 'if' could be placed inside a switch statement.

Pratap
JokeRe: Is this c/c++ code valid Pin
BadKarma21-Apr-08 23:59
BadKarma21-Apr-08 23:59 
GeneralRe: Is this c/c++ code valid Pin
Raj Prathap22-Apr-08 0:07
Raj Prathap22-Apr-08 0:07 
GeneralRe: Is this c/c++ code valid Pin
Hamid_RT22-Apr-08 0:03
Hamid_RT22-Apr-08 0:03 
GeneralRe: Is this c/c++ code valid Pin
Raj Prathap22-Apr-08 0:11
Raj Prathap22-Apr-08 0:11 
GeneralRe: Is this c/c++ code valid Pin
_AnsHUMAN_ 22-Apr-08 0:23
_AnsHUMAN_ 22-Apr-08 0:23 
GeneralRe: Is this c/c++ code valid Pin
Rajesh R Subramanian22-Apr-08 0:38
professionalRajesh R Subramanian22-Apr-08 0:38 
JokeRe: Is this c/c++ code valid Pin
CPallini22-Apr-08 0:51
mveCPallini22-Apr-08 0:51 
QuestionRe: Is this c/c++ code valid Pin
CPallini22-Apr-08 0:39
mveCPallini22-Apr-08 0:39 
GeneralRe: Is this c/c++ code valid Pin
Raj Prathap22-Apr-08 1:19
Raj Prathap22-Apr-08 1:19 
GeneralRe: Is this c/c++ code valid Pin
CPallini22-Apr-08 1:44
mveCPallini22-Apr-08 1:44 
QuestionRe: Is this c/c++ code valid Pin
David Crow22-Apr-08 4:47
David Crow22-Apr-08 4:47 
QuestionHow to update the data? Pin
savitri21-Apr-08 23:30
savitri21-Apr-08 23:30 
GeneralRe: How to update the data? Pin
Mukesh Kumar22-Apr-08 0:53
Mukesh Kumar22-Apr-08 0:53 
QuestionRe: How to update the data? Pin
David Crow22-Apr-08 4:49
David Crow22-Apr-08 4:49 
GeneralRe: How to update the data? Pin
Mark Salsbery22-Apr-08 5:54
Mark Salsbery22-Apr-08 5:54 
GeneralRe: How to update the data? Pin
savitri22-Apr-08 22:33
savitri22-Apr-08 22:33 
GeneralRe: How to update the data? Pin
Mark Salsbery23-Apr-08 9:18
Mark Salsbery23-Apr-08 9:18 

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.