Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++Linking Classes/.cpp files to run one after other? Pin
Cedric Moonen11-Apr-10 20:57
Cedric Moonen11-Apr-10 20:57 
QuestionArray indexes Pin
Farraj10-Apr-10 23:46
Farraj10-Apr-10 23:46 
AnswerRe: Array indexes Pin
Nelek11-Apr-10 0:26
protectorNelek11-Apr-10 0:26 
AnswerRe: Array indexes Pin
Saurabh.Garg11-Apr-10 2:01
Saurabh.Garg11-Apr-10 2:01 
AnswerRe: Array indexes Pin
Luc Pattyn11-Apr-10 2:15
sitebuilderLuc Pattyn11-Apr-10 2:15 
AnswerRe: Array indexes Pin
Farraj11-Apr-10 3:04
Farraj11-Apr-10 3:04 
GeneralRe: Array indexes Pin
Luc Pattyn11-Apr-10 3:30
sitebuilderLuc Pattyn11-Apr-10 3:30 
GeneralRe: Array indexes Pin
Farraj11-Apr-10 11:27
Farraj11-Apr-10 11:27 
thank you.
i've got it working but the array is sorted from the minimum index to the maximum, how can i fix it the oppisite way?

this is the code so far..

if(a[j]>a[j+1])
{
    temp = index[j+1];
    index[j+1] = index[j];
    index[j] = temp;

}


another thing.. you've mentioned something about initializing the array from 0->N-1, ive done that while i know what size my array is.
what if the size is unknown N, how can i initialize it to be from 0 to N-1? should i make another loop to initialize it or there is some other way?

Thanks a lot for everyone's help Wink | ;)
GeneralRe: Array indexes Pin
Luc Pattyn11-Apr-10 11:47
sitebuilderLuc Pattyn11-Apr-10 11:47 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 8:30
Farraj14-Apr-10 8:30 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 8:34
Farraj14-Apr-10 8:34 
GeneralRe: Array indexes Pin
Luc Pattyn14-Apr-10 8:34
sitebuilderLuc Pattyn14-Apr-10 8:34 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 8:35
Farraj14-Apr-10 8:35 
AnswerRe: Array indexes Pin
Chris Losinger11-Apr-10 5:07
professionalChris Losinger11-Apr-10 5:07 
QuestionHow to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic10-Apr-10 23:16
kcynic10-Apr-10 23:16 
AnswerRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
Code-o-mat11-Apr-10 1:07
Code-o-mat11-Apr-10 1:07 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic11-Apr-10 4:41
kcynic11-Apr-10 4:41 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
Code-o-mat11-Apr-10 6:20
Code-o-mat11-Apr-10 6:20 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic11-Apr-10 14:31
kcynic11-Apr-10 14:31 
QuestionHow do I segment an image in different colors? Pin
lilliana10-Apr-10 19:06
lilliana10-Apr-10 19:06 
QuestionRe: How do I segment an image in different colors? Pin
Tim Craig10-Apr-10 19:32
Tim Craig10-Apr-10 19:32 
AnswerRe: How do I segment an image in different colors? Pin
Saurabh.Garg11-Apr-10 2:04
Saurabh.Garg11-Apr-10 2:04 
AnswerRe: How do I segment an image in different colors? Pin
@Intersect☺™12-Apr-10 20:50
professional@Intersect☺™12-Apr-10 20:50 
QuestionIPersistFile::Save fails Error Access Denied Pin
ShilpiP10-Apr-10 17:56
ShilpiP10-Apr-10 17:56 
AnswerRe: IPersistFile::Save fails Error Access Denied Pin
Adam Roderick J10-Apr-10 20:59
Adam Roderick J10-Apr-10 20:59 

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.