Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString question Pin
Michael Dunn17-Sep-05 18:56
sitebuilderMichael Dunn17-Sep-05 18:56 
GeneralRe: CString question Pin
benjnp17-Sep-05 19:02
benjnp17-Sep-05 19:02 
AnswerRe: CString question Pin
Neelesh K J Jain17-Sep-05 19:08
Neelesh K J Jain17-Sep-05 19:08 
GeneralRe: CString question Pin
benjnp17-Sep-05 19:14
benjnp17-Sep-05 19:14 
GeneralRe: CString question Pin
Jack Puppy17-Sep-05 19:23
Jack Puppy17-Sep-05 19:23 
GeneralRe: CString question Pin
benjnp17-Sep-05 19:26
benjnp17-Sep-05 19:26 
GeneralRe: CString question Pin
Neelesh K J Jain17-Sep-05 19:25
Neelesh K J Jain17-Sep-05 19:25 
AnswerRe: CString question Pin
ThatsAlok18-Sep-05 18:42
ThatsAlok18-Sep-05 18:42 
QuestionDialog menu problem Pin
benjnp17-Sep-05 18:41
benjnp17-Sep-05 18:41 
AnswerRe: Dialog menu problem Pin
Jose Lamas Rios17-Sep-05 19:43
Jose Lamas Rios17-Sep-05 19:43 
GeneralRe: Dialog menu problem Pin
benjnp17-Sep-05 21:02
benjnp17-Sep-05 21:02 
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 

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.