Click here to Skip to main content
14,176,741 members

C / C++ / MFC

 
GeneralRe: i really need help with this Pin
Richard MacCutchan29-Mar-19 5:58
protectorRichard MacCutchan29-Mar-19 5:58 
AnswerRe: i really need help with this Pin
Victor Nijegorodov29-Mar-19 6:43
memberVictor Nijegorodov29-Mar-19 6:43 
GeneralRe: i really need help with this Pin
Member 142033272-Apr-19 4:14
memberMember 142033272-Apr-19 4:14 
QuestionRe: i really need help with this Pin
David Crow29-Mar-19 9:24
memberDavid Crow29-Mar-19 9:24 
AnswerRe: i really need help with this Pin
Member 1420332730-Mar-19 3:52
memberMember 1420332730-Mar-19 3:52 
GeneralRe: i really need help with this Pin
k505430-Mar-19 4:48
memberk505430-Mar-19 4:48 
GeneralRe: i really need help with this Pin
Member 142033272-Apr-19 4:13
memberMember 142033272-Apr-19 4:13 
SuggestionRe: i really need help with this Pin
David Crow30-Mar-19 5:33
memberDavid Crow30-Mar-19 5:33 
Member 14203327 wrote:
for (marks[a]<marks[b];b++;){
Among other things, this may be part of your problem. A for() loop has three components: initialization, condition, increment. Any of them can be optional. In the initialization section, you have a condition. In the condition section, you have an increment.

A more straight-forward approach might look something like:
initialize lowest to some arbitrary high number (or assign it to the 1st number in marks, and then just loop 4 times)
loop 5 times
    if the current number is less than lowest, re-assign lowest to it
repeat
print

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


AnswerRe: i really need help with this Pin
Gerry Schmitz29-Mar-19 10:40
mveGerry Schmitz29-Mar-19 10:40 
AnswerRe: i really need help with this Pin
Vaclav_1-Apr-19 15:43
memberVaclav_1-Apr-19 15:43 
QuestionPutting declared const into a print statement Pin
SEmmett28-Mar-19 10:45
memberSEmmett28-Mar-19 10:45 
AnswerRe: Putting declared const into a print statement Pin
k505428-Mar-19 11:01
memberk505428-Mar-19 11:01 
AnswerRe: Putting declared const into a print statement Pin
CPallini28-Mar-19 11:06
mveCPallini28-Mar-19 11:06 
GeneralRe: Putting declared const into a print statement Pin
SEmmett28-Mar-19 11:34
memberSEmmett28-Mar-19 11:34 
GeneralRe: Putting declared const into a print statement Pin
k505428-Mar-19 12:01
memberk505428-Mar-19 12:01 
GeneralRe: Putting declared const into a print statement Pin
SEmmett28-Mar-19 14:53
memberSEmmett28-Mar-19 14:53 
QuestionHow i get any scan image source library ? Pin
ahmed_sa26-Mar-19 23:20
memberahmed_sa26-Mar-19 23:20 
AnswerRe: How i get any scan image source library ? Pin
Richard MacCutchan26-Mar-19 23:49
protectorRichard MacCutchan26-Mar-19 23:49 
QuestionI am trying to make a keyboard recorder for an app Pin
Member 1419098121-Mar-19 2:09
memberMember 1419098121-Mar-19 2:09 
AnswerRe: I am trying to make a keyboard recorder for an app Pin
Eddy Vluggen21-Mar-19 2:18
mveEddy Vluggen21-Mar-19 2:18 
GeneralRe: I am trying to make a keyboard recorder for an app Pin
Member 1419098122-Mar-19 2:15
memberMember 1419098122-Mar-19 2:15 
GeneralRe: I am trying to make a keyboard recorder for an app Pin
Richard MacCutchan22-Mar-19 4:23
protectorRichard MacCutchan22-Mar-19 4:23 
GeneralRe: I am trying to make a keyboard recorder for an app Pin
leon de boer24-Mar-19 6:54
memberleon de boer24-Mar-19 6:54 
GeneralRe: I am trying to make a keyboard recorder for an app Pin
Stefan_Lang24-Mar-19 22:25
memberStefan_Lang24-Mar-19 22:25 
AnswerRe: I am trying to make a keyboard recorder for an app Pin
jschell23-Mar-19 5:37
memberjschell23-Mar-19 5:37 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190525.1 | Last Updated 25 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid