Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTool Bar Control Problem. Pin
Neelesh K J Jain17-Sep-05 18:33
Neelesh K J Jain17-Sep-05 18:33 
QuestionDisk drives Pin
benjnp17-Sep-05 17:37
benjnp17-Sep-05 17:37 
AnswerRe: Disk drives Pin
Michael Dunn17-Sep-05 18:44
sitebuilderMichael Dunn17-Sep-05 18:44 
GeneralRe: Disk drives Pin
benjnp17-Sep-05 19:03
benjnp17-Sep-05 19:03 
AnswerRe: Disk drives Pin
ThatsAlok18-Sep-05 18:45
ThatsAlok18-Sep-05 18:45 
QuestionC++ question Pin
Sveta8017-Sep-05 12:39
Sveta8017-Sep-05 12:39 
AnswerRe: C++ question Pin
Achim Klein17-Sep-05 14:16
Achim Klein17-Sep-05 14:16 
GeneralRe: C++ question Pin
Achim Klein17-Sep-05 14:24
Achim Klein17-Sep-05 14:24 
If the array ends with a positive number:
// ----
// main
// ----
/**
 * The application starts here.
 *
 * @param argc number of arguments
 * @param argv list of arguments
 *
 * @return 0 if finished successfully
 */
int main(int argc, char** argv)
{
	const int size = 13;

	double array[size];

	array[0]  =  110.0;
	array[1]  =   12.4;
	array[2]  =  -10.0;
	array[3]  =   16.1;
	array[4]  =   78.9;
	array[5]  =  123.0;
	array[6]  =   -2.0;
	array[7]  =   59.3;
	array[8]  =   66.5;
	array[9]  = 658.45;
	array[10] =   -1.1;
	array[11] =  100.0;
	array[12] =  200.0;

	int start = 0;

	for(int i = 0; i < size; i++)
	{
		if (array[i] < 0)
		{
			sort(array, start, i);
			show(array, start, i);

			start = (i + 1);
		}
	}

	// if the array ends with a positive number
	if (start < i)
	{
		sort(array, start, i);
		show(array, start, i);
	}

	return 0;
}



We can do no great things, only small things with great love. - Mother Theresa
AnswerRe: C++ question Pin
David Crow17-Sep-05 15:04
David Crow17-Sep-05 15:04 
GeneralRe: C++ question Pin
Sveta8017-Sep-05 15:20
Sveta8017-Sep-05 15:20 
GeneralRe: C++ question Pin
Achim Klein17-Sep-05 16:09
Achim Klein17-Sep-05 16:09 
GeneralRe: C++ question Pin
David Crow18-Sep-05 3:40
David Crow18-Sep-05 3:40 
QuestionSet an image into a dialog Pin
tl0825417-Sep-05 7:05
tl0825417-Sep-05 7:05 
AnswerRe: Set an image into a dialog Pin
Achim Klein17-Sep-05 7:30
Achim Klein17-Sep-05 7:30 
AnswerRe: Set an image into a dialog Pin
Alexander M.,17-Sep-05 11:39
Alexander M.,17-Sep-05 11:39 
QuestionWin32 Application Pin
Dev57817-Sep-05 6:55
Dev57817-Sep-05 6:55 
AnswerRe: Win32 Application Pin
Johann Gerell17-Sep-05 23:30
Johann Gerell17-Sep-05 23:30 
Questionsource code for webserver in VC++ Pin
sachappi17-Sep-05 3:21
sachappi17-Sep-05 3:21 
AnswerRe: source code for webserver in VC++ Pin
Ravi Bhavnani17-Sep-05 4:03
professionalRavi Bhavnani17-Sep-05 4:03 
QuestionFile checking Pin
benjnp17-Sep-05 3:03
benjnp17-Sep-05 3:03 
AnswerRe: File checking Pin
Achim Klein17-Sep-05 5:11
Achim Klein17-Sep-05 5:11 
AnswerRe: File checking Pin
Alexander M.,17-Sep-05 11:38
Alexander M.,17-Sep-05 11:38 
AnswerRe: File checking Pin
benjnp17-Sep-05 16:58
benjnp17-Sep-05 16:58 
QuestionEmbarassing IStream question Pin
Joel Holdsworth17-Sep-05 1:42
Joel Holdsworth17-Sep-05 1:42 
AnswerRe: Embarassing IStream question Pin
YoSilver17-Sep-05 2:31
YoSilver17-Sep-05 2:31 

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.