Click here to Skip to main content
15,921,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: print it only if it is not a duplicate Pin
Chris Losinger15-Nov-09 15:16
professionalChris Losinger15-Nov-09 15:16 
i think you need to re-think the problem.

here's a hint: the population array is going to start out with 0 items in it. after the first number read, it will have one item in it. after the second, it can have one or two. after the third, one, two or three. you need to keep track.

here's another hint: you're going to have two loops: one going from 0-19, to read the numbers, and another, inside the first, going from 0-N, where N is the number of items you've read and stored.


GeneralRe: print it only if it is not a duplicate Pin
Omegaclass19-Nov-09 20:56
Omegaclass19-Nov-09 20:56 
GeneralRe: print it only if it is not a duplicate Pin
Chris Losinger20-Nov-09 4:32
professionalChris Losinger20-Nov-09 4:32 
GeneralRe: print it only if it is not a duplicate Pin
Omegaclass20-Nov-09 14:56
Omegaclass20-Nov-09 14:56 
GeneralRe: print it only if it is not a duplicate Pin
Chris Losinger20-Nov-09 15:16
professionalChris Losinger20-Nov-09 15:16 
GeneralRe: print it only if it is not a duplicate Pin
Omegaclass21-Nov-09 20:31
Omegaclass21-Nov-09 20:31 
QuestionHooking CreateRemoteThread [modified] Pin
hxhl9515-Nov-09 13:50
hxhl9515-Nov-09 13:50 
AnswerRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 16:56
Naveen15-Nov-09 16:56 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:09
hxhl9515-Nov-09 17:09 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:17
Naveen15-Nov-09 17:17 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:20
hxhl9515-Nov-09 17:20 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:32
Naveen15-Nov-09 17:32 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:39
hxhl9515-Nov-09 17:39 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:59
Naveen15-Nov-09 17:59 
QuestionWhat Windows API function is called to create / show a dialog box. Pin
hongheo7615-Nov-09 11:43
hongheo7615-Nov-09 11:43 
AnswerRe: What Windows API function is called to create / show a dialog box. Pin
Code-o-mat15-Nov-09 20:25
Code-o-mat15-Nov-09 20:25 
QuestionProblem debugging an app with VC++ Pin
timbk15-Nov-09 10:09
timbk15-Nov-09 10:09 
AnswerRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 10:58
professionalChris Losinger15-Nov-09 10:58 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 14:23
timbk15-Nov-09 14:23 
GeneralRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 14:43
professionalChris Losinger15-Nov-09 14:43 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:01
timbk15-Nov-09 15:01 
GeneralRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 15:06
professionalChris Losinger15-Nov-09 15:06 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:24
timbk15-Nov-09 15:24 
GeneralRe: Problem debugging an app with VC++ Pin
Richard MacCutchan15-Nov-09 21:36
mveRichard MacCutchan15-Nov-09 21:36 
GeneralRe: Problem debugging an app with VC++ Pin
timbk17-Nov-09 13:29
timbk17-Nov-09 13:29 

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.