Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Still in problem... Pin
kakan23-Nov-05 19:46
professionalkakan23-Nov-05 19:46 
GeneralRe: Still in problem... Pin
Aqueel25-Nov-05 3:00
Aqueel25-Nov-05 3:00 
GeneralRe: Still in problem... Pin
kakan27-Nov-05 19:06
professionalkakan27-Nov-05 19:06 
QuestionDisplaying image on full screen Pin
Vancouver23-Nov-05 16:49
Vancouver23-Nov-05 16:49 
AnswerRe: Displaying image on full screen Pin
ThatsAlok29-Nov-05 17:59
ThatsAlok29-Nov-05 17:59 
GeneralRe: Displaying image on full screen Pin
Vancouver29-Nov-05 20:15
Vancouver29-Nov-05 20:15 
Questionvisual basic and access Pin
RiNaZaiNoN23-Nov-05 15:24
RiNaZaiNoN23-Nov-05 15:24 
QuestionSort Array of Objects Pin
kenexcelon23-Nov-05 14:23
kenexcelon23-Nov-05 14:23 
I'm trying to sort an array of race objects by its raceid and I can't figure out what's wrong I don't seem to get any weird errors other than the most obvious that it doesn't work. Could someone point out what's wrong with my code?

Thanks!

void sortRaces(race theRaces[], int number_used)
{
int index_of_next_smallest;
for (int index = 0; index < number_used - 1; index++)
{
index_of_next_smallest = index_of_smallest(theRaces, index, number_used);
swap_races(theRaces[index], theRaces[index_of_next_smallest]);
}
system("cls");
skip(2);
pause("The races have been sorted");
}//end sortRaces

void swap_races(race &race1, race &race2)
{
race temp;
temp = race1;
race1 = race2;
race2 = temp;
}

int index_of_smallest(race theRaces[], int start_index, int number_used)
{
int min = theRaces[start_index].getraceID();
int index_of_min = start_index;
for (int index = start_index + 1; index < number_used; index++)
{
min = theRaces[index].getraceID();
index_of_min = index;
}
return index_of_min;
}
AnswerRe: Sort Array of Objects Pin
Christian Graus23-Nov-05 14:37
protectorChristian Graus23-Nov-05 14:37 
QuestionEdit Control flashes Pin
LeeeNN23-Nov-05 13:51
LeeeNN23-Nov-05 13:51 
QuestionEmbedded browser control leaks handles? Pin
dandy7223-Nov-05 11:25
dandy7223-Nov-05 11:25 
Questionfile searching problem Pin
Binary011023-Nov-05 8:40
Binary011023-Nov-05 8:40 
AnswerRe: file searching problem Pin
Curtis Schlak.23-Nov-05 9:57
Curtis Schlak.23-Nov-05 9:57 
QuestionDefining a target architecture Pin
Demian Panello23-Nov-05 8:20
Demian Panello23-Nov-05 8:20 
QuestionRegistration or Login Screen in an SDI application Pin
sdancer7523-Nov-05 7:22
sdancer7523-Nov-05 7:22 
AnswerRe: Registration or Login Screen in an SDI application Pin
Marc Soleda23-Nov-05 20:47
Marc Soleda23-Nov-05 20:47 
AnswerRe: Registration or Login Screen in an SDI application Pin
Cool Ju24-Nov-05 0:37
Cool Ju24-Nov-05 0:37 
QuestionMFC and Global Variables :How can i access them ? Pin
sdancer7523-Nov-05 7:19
sdancer7523-Nov-05 7:19 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
BlackDice23-Nov-05 11:08
BlackDice23-Nov-05 11:08 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
Christian Graus23-Nov-05 11:28
protectorChristian Graus23-Nov-05 11:28 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
ThatsAlok28-Nov-05 17:39
ThatsAlok28-Nov-05 17:39 
QuestionHow to set LPT ? to read and write byte Pin
quangpk23-Nov-05 5:33
quangpk23-Nov-05 5:33 
AnswerRe: How to set LPT ? to read and write byte Pin
khan++23-Nov-05 23:08
khan++23-Nov-05 23:08 
GeneralRe: How to set LPT ? to read and write byte Pin
quangpk1-Dec-05 6:35
quangpk1-Dec-05 6:35 
QuestionHow to read and write data to File's section Pin
Loc Milkyway23-Nov-05 4:51
Loc Milkyway23-Nov-05 4:51 

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.