Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
vicky000007-Jul-08 22:48
vicky000007-Jul-08 22:48 
GeneralRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
AnithaSubramani7-Jul-08 23:08
AnithaSubramani7-Jul-08 23:08 
GeneralRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
vicky000007-Jul-08 23:37
vicky000007-Jul-08 23:37 
AnswerRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
_AnsHUMAN_ 7-Jul-08 22:50
_AnsHUMAN_ 7-Jul-08 22:50 
GeneralRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
AnithaSubramani7-Jul-08 23:13
AnithaSubramani7-Jul-08 23:13 
AnswerRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
CPallini7-Jul-08 23:29
mveCPallini7-Jul-08 23:29 
AnswerRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
David Crow8-Jul-08 3:12
David Crow8-Jul-08 3:12 
JokeRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
Mark Salsbery8-Jul-08 6:43
Mark Salsbery8-Jul-08 6:43 
AnswerRe: UP and DOWN keyboard event in MFC Application(Very Urgent) Pin
Stephen Hewitt8-Jul-08 15:03
Stephen Hewitt8-Jul-08 15:03 
Questiondialog help Pin
projectip7-Jul-08 22:08
projectip7-Jul-08 22:08 
AnswerRe: dialog help Pin
_AnsHUMAN_ 7-Jul-08 22:22
_AnsHUMAN_ 7-Jul-08 22:22 
GeneralRe: dialog help Pin
projectip7-Jul-08 22:36
projectip7-Jul-08 22:36 
GeneralRe: dialog help Pin
_AnsHUMAN_ 7-Jul-08 23:02
_AnsHUMAN_ 7-Jul-08 23:02 
GeneralRe: dialog help Pin
projectip7-Jul-08 23:17
projectip7-Jul-08 23:17 
GeneralRe: dialog help Pin
_AnsHUMAN_ 7-Jul-08 23:32
_AnsHUMAN_ 7-Jul-08 23:32 
GeneralRe: dialog help Pin
projectip8-Jul-08 0:17
projectip8-Jul-08 0:17 
GeneralRe: dialog help [modified] Pin
Varghese Paul M8-Jul-08 1:16
Varghese Paul M8-Jul-08 1:16 
AnswerRe: dialog help Pin
Rajesh R Subramanian8-Jul-08 0:52
professionalRajesh R Subramanian8-Jul-08 0:52 
QuestionGet focus Pin
iayd7-Jul-08 21:50
iayd7-Jul-08 21:50 
AnswerRe: Get focus Pin
Yajnesh Narayan Behera8-Jul-08 1:54
Yajnesh Narayan Behera8-Jul-08 1:54 
Questionits showing Error ? Pin
nisha000007-Jul-08 21:24
nisha000007-Jul-08 21:24 
hi
this is my code ..its working good in 3digit sorting algorithm.

#define next(i) ((i) < 5 ? (i) + 1 : 1)
#define previous(i) ((i) > 1 ? (i) - 1 : 1)

int main()
{
unsigned long i, aux, j, cnt;

for (i=1 ; i<6 ; i++)
{
for (aux = next(i) ; aux != previous(i) ; aux = next(aux))
{
cout << i << aux << next(aux) << endl;
}

}

return 0;
}



But, i replaced 5 into 100 ..its showing wrong sorting why?

#define next(i) ((i) < 100 ? (i) + 1 : 1)
#define previous(i) ((i) > 1 ? (i) - 1 : 1)

int main()
{
unsigned long i, aux, j, cnt;

for (i=1 ; i<101 ; i++)
{
for (aux = next(i) ; aux != previous(i) ; aux = next(aux))
{
cout << i << aux << next(aux) << endl;
}

}

return 0;
}


Thanks and Regards

Nisha.S
AnswerRe: its showing Error ? Pin
_AnsHUMAN_ 7-Jul-08 21:44
_AnsHUMAN_ 7-Jul-08 21:44 
Questionhow to know which port is being used by which process with windows API? Pin
ZhiLiangLin7-Jul-08 21:08
ZhiLiangLin7-Jul-08 21:08 
AnswerRe: how to know which port is being used by which process with windows API? Pin
_AnsHUMAN_ 7-Jul-08 21:48
_AnsHUMAN_ 7-Jul-08 21:48 
QuestionVisual Studio remote debugging Pin
George_George7-Jul-08 20:16
George_George7-Jul-08 20:16 

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.