Click here to Skip to main content
15,848,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ class pointers Pin
Emilio Garavaglia11-Apr-10 21:58
Emilio Garavaglia11-Apr-10 21:58 
QuestionC++Linking Classes/.cpp files to run one after other? Pin
FinalDecap11-Apr-10 6:59
FinalDecap11-Apr-10 6:59 
AnswerRe: C++Linking Classes/.cpp files to run one after other? Pin
Cedric Moonen11-Apr-10 21:57
Cedric Moonen11-Apr-10 21:57 
QuestionArray indexes Pin
Farraj11-Apr-10 0:46
Farraj11-Apr-10 0:46 
AnswerRe: Array indexes Pin
Nelek11-Apr-10 1:26
protectorNelek11-Apr-10 1:26 
AnswerRe: Array indexes Pin
Saurabh.Garg11-Apr-10 3:01
Saurabh.Garg11-Apr-10 3:01 
AnswerRe: Array indexes Pin
Luc Pattyn11-Apr-10 3:15
sitebuilderLuc Pattyn11-Apr-10 3:15 
AnswerRe: Array indexes Pin
Farraj11-Apr-10 4:04
Farraj11-Apr-10 4:04 
thanks for your replies guys i appreciate it
ive tried this code.. it may look bad lol
but i'll appreciate it a lot if someone can tell me how to correct it

	int a[] = {2,1,5,4,7};
//assuming that the size of array is 5 -> initializing it from 0-4
	int index[] = {0,1,2,3,4}; 
	int i,j,temp;

	for(int i=0; i<5; i++)
			{
				for(int j=0; j<5-1; j++)
				{
					if(a[index[j]]>a[index[j+1]])
					{
						temp = index[a[j+1]];
						index[a[j+1]] = index[a[j]];
						index[a[j]] = temp;
						
						
					}
				}
			}



thanks Wink | ;)
GeneralRe: Array indexes Pin
Luc Pattyn11-Apr-10 4:30
sitebuilderLuc Pattyn11-Apr-10 4:30 
GeneralRe: Array indexes Pin
Farraj11-Apr-10 12:27
Farraj11-Apr-10 12:27 
GeneralRe: Array indexes Pin
Luc Pattyn11-Apr-10 12:47
sitebuilderLuc Pattyn11-Apr-10 12:47 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 9:30
Farraj14-Apr-10 9:30 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 9:34
Farraj14-Apr-10 9:34 
GeneralRe: Array indexes Pin
Luc Pattyn14-Apr-10 9:34
sitebuilderLuc Pattyn14-Apr-10 9:34 
GeneralRe: Array indexes Pin
Farraj14-Apr-10 9:35
Farraj14-Apr-10 9:35 
AnswerRe: Array indexes Pin
Chris Losinger11-Apr-10 6:07
professionalChris Losinger11-Apr-10 6:07 
QuestionHow to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic11-Apr-10 0:16
kcynic11-Apr-10 0:16 
AnswerRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
Code-o-mat11-Apr-10 2:07
Code-o-mat11-Apr-10 2:07 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic11-Apr-10 5:41
kcynic11-Apr-10 5:41 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
Code-o-mat11-Apr-10 7:20
Code-o-mat11-Apr-10 7:20 
GeneralRe: How to fully custom draw combobox control, edit, arrow button and listbox included? Pin
kcynic11-Apr-10 15:31
kcynic11-Apr-10 15:31 
QuestionHow do I segment an image in different colors? Pin
lilliana10-Apr-10 20:06
lilliana10-Apr-10 20:06 
QuestionRe: How do I segment an image in different colors? Pin
Tim Craig10-Apr-10 20:32
Tim Craig10-Apr-10 20:32 
AnswerRe: How do I segment an image in different colors? Pin
Saurabh.Garg11-Apr-10 3:04
Saurabh.Garg11-Apr-10 3:04 
AnswerRe: How do I segment an image in different colors? Pin
@Intersect☺™12-Apr-10 21:50
professional@Intersect☺™12-Apr-10 21:50 

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.