15,905,781 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: MFC Activex Control Richard MacCutchan16-Oct-17 5:37 Richard MacCutchan 16-Oct-17 5:37
 Re: MFC Activex Control leon de boer16-Oct-17 20:34 leon de boer 16-Oct-17 20:34
 Re: MFC Activex Control RichardK15122-Oct-17 23:49 RichardK151 22-Oct-17 23:49
 Re: MFC Activex Control leon de boer25-Oct-17 9:18 leon de boer 25-Oct-17 9:18
 To arrange n numbers in descending order ? Tarun Jha13-Oct-17 9:02 Tarun Jha 13-Oct-17 9:02
 Re: To arrange n numbers in descending order ? jeron113-Oct-17 9:08 jeron1 13-Oct-17 9:08
 Re: To arrange n numbers in descending order ? David Crow13-Oct-17 16:06 David Crow 13-Oct-17 16:06
 Re: To arrange n numbers in descending order ? Richard MacCutchan13-Oct-17 22:44 Richard MacCutchan 13-Oct-17 22:44
 You need to stop writing code for a while and spend more time thinking about the problem. What steps are needed to accomplish your goal? Write them down on paper, line by line to understand what needs to be done at each step. I already showed you how to find the largest number in a sequence and you are still making it more complicated. As you read in the integers in the first loop you can check for the largest as you store them, you do not need a second loop. You also need to look at the statement in the second loop: C++ ```largest = num[j]; j=k; ``` What is the value of k at this point? And in the final loop you are just moving numbers, with no regard to whether they are in any order.
 Re: To arrange n numbers in descending order ? «_Superman_»15-Oct-17 18:02 «_Superman_» 15-Oct-17 18:02
 Re: To arrange n numbers in descending order ? CPallini16-Oct-17 3:21 CPallini 16-Oct-17 3:21
 To find biggest of n numbers ? Tarun Jha13-Oct-17 5:44 Tarun Jha 13-Oct-17 5:44
 Re: To find biggest of n numbers ? jschell13-Oct-17 5:56 jschell 13-Oct-17 5:56
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 6:02 Tarun Jha 13-Oct-17 6:02
 Re: To find biggest of n numbers ? jschell15-Oct-17 7:11 jschell 15-Oct-17 7:11
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 6:16 Richard MacCutchan 13-Oct-17 6:16
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 6:22 Tarun Jha 13-Oct-17 6:22
 Re: To find biggest of n numbers ? jeron113-Oct-17 6:34 jeron1 13-Oct-17 6:34
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 6:51 Richard MacCutchan 13-Oct-17 6:51
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 7:14 Tarun Jha 13-Oct-17 7:14
 Re: To find biggest of n numbers ? David Crow13-Oct-17 16:10 David Crow 13-Oct-17 16:10
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 22:33 Richard MacCutchan 13-Oct-17 22:33
 Re: To find biggest of n numbers ? leon de boer13-Oct-17 6:50 leon de boer 13-Oct-17 6:50
 while error ? bluatigro12-Oct-17 0:23 bluatigro 12-Oct-17 0:23
 Re: while error ? David Crow12-Oct-17 2:35 David Crow 12-Oct-17 2:35
 Re: while error ? Manish K. Agarwal12-Oct-17 4:22 Manish K. Agarwal 12-Oct-17 4:22
 Last Visit: 31-Dec-99 18:00     Last Update: 26-May-24 8:08 Refresh ᐊ Prev1...333334335336337338339340341342 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.