Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp in adding a new display mode!!!Crazy Pin
uday__m9-Feb-05 23:15
uday__m9-Feb-05 23:15 
Questionhow to pack bitmaps in a dll Pin
Anonymous9-Feb-05 23:02
Anonymous9-Feb-05 23:02 
AnswerRe: how to pack bitmaps in a dll Pin
2249179-Feb-05 23:07
2249179-Feb-05 23:07 
GeneralUDP message reply Pin
Anonymous9-Feb-05 22:58
Anonymous9-Feb-05 22:58 
Generalsorting elements in double pointer Pin
tttyip9-Feb-05 20:35
tttyip9-Feb-05 20:35 
GeneralRe: sorting elements in double pointer Pin
David Crow10-Feb-05 9:26
David Crow10-Feb-05 9:26 
GeneralRe: sorting elements in double pointer Pin
tttyip22-Feb-05 2:32
tttyip22-Feb-05 2:32 
GeneralRe: sorting elements in double pointer Pin
David Crow22-Feb-05 3:36
David Crow22-Feb-05 3:36 
I'm not sure if you even tried the code snippet that I provided but it does produce the answer you are after. Change main() to the following to verify:

void main( void )
{   
    cout << "Number   Index" << endl;
    cout << "------   -----" << endl;
 
    for (int x = 0; x < 5; x++)
        cout << "  " << ptr[x].d << "        " << ptr[x].n << endl;
     
    qsort(ptr, sizeof(ptr) / sizeof(ptr[0]), sizeof(ptr[0]), Compare);    
 
    cout << endl;
 
    for (x = 0; x < 5; x++)
        cout << "  " << ptr[x].d << "        " << ptr[x].n << endl;
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralVisual Studio .Net hangs system during debugging. Pin
Brian van der Beek9-Feb-05 20:03
Brian van der Beek9-Feb-05 20:03 
GeneralRe: Visual Studio .Net hangs system during debugging. Pin
2249179-Feb-05 21:34
2249179-Feb-05 21:34 
GeneralRe: Visual Studio .Net hangs system during debugging. Pin
Joel Lucsy13-Feb-05 14:29
Joel Lucsy13-Feb-05 14:29 
GeneralShellExecute, it is not working Pin
Aqueel9-Feb-05 19:17
Aqueel9-Feb-05 19:17 
GeneralRe: ShellExecute, it is not working Pin
Blake Miller10-Feb-05 4:46
Blake Miller10-Feb-05 4:46 
GeneralRe: ShellExecute, it is not working Pin
Aqueel10-Feb-05 16:31
Aqueel10-Feb-05 16:31 
GeneralRe: ShellExecute, it is not working Pin
Yulianto.10-Feb-05 16:48
Yulianto.10-Feb-05 16:48 
GeneralRe: ShellExecute, it is not working Pin
Blake Miller11-Feb-05 4:10
Blake Miller11-Feb-05 4:10 
QuestionHow to draw line control in .net design time using 2 points ? Pin
Surya Prakash Adari9-Feb-05 19:14
Surya Prakash Adari9-Feb-05 19:14 
GeneralHalf Heart- an MMORPG Pin
RageForInsanity9-Feb-05 19:12
RageForInsanity9-Feb-05 19:12 
GeneralRe: Half Heart- an MMORPG Pin
namaskaaram9-Feb-05 19:40
namaskaaram9-Feb-05 19:40 
GeneralRe: Half Heart- an MMORPG Pin
RageForInsanity9-Feb-05 21:09
RageForInsanity9-Feb-05 21:09 
GeneralRe: Half Heart- an MMORPG Pin
RageForInsanity9-Feb-05 21:11
RageForInsanity9-Feb-05 21:11 
GeneralRe: Half Heart- an MMORPG Pin
namaskaaram9-Feb-05 21:27
namaskaaram9-Feb-05 21:27 
GeneralRe: Half Heart- an MMORPG Pin
namaskaaram9-Feb-05 21:33
namaskaaram9-Feb-05 21:33 
GeneralCombobox Control at runtime Pin
Rahim Rattani9-Feb-05 18:57
Rahim Rattani9-Feb-05 18:57 
GeneralRe: Combobox Control at runtime Pin
2249179-Feb-05 21:42
2249179-Feb-05 21:42 

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.