Click here to Skip to main content
15,904,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAccess Database Report Pin
Tom Wright11-Feb-05 6:05
Tom Wright11-Feb-05 6:05 
GeneralRe: Access Database Report Pin
Anonymous11-Feb-05 12:07
Anonymous11-Feb-05 12:07 
GeneralRead file, write to array, find min and max Pin
dr.eu11-Feb-05 5:46
dr.eu11-Feb-05 5:46 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 6:00
David Crow11-Feb-05 6:00 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:05
dr.eu11-Feb-05 6:05 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:09
rocky_pulley11-Feb-05 6:09 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:14
dr.eu11-Feb-05 6:14 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 6:23
David Crow11-Feb-05 6:23 
As you are reading in the numbers, if num_elements is a multiple of 100, then call biggest() and smallest().

Another way would be to read all of the numbers in the file, and call the biggest() and smallest() functions once for each group of 100 numbers, like:

big1 = biggest(table, 100); // search the first 100 numbers
big2 = biggest(&table[100], 100); // search the second 100 numbers
big3 = biggest(&table[200], 100); // search the third 100 numbers
Make sense?


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:35
dr.eu11-Feb-05 6:35 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 6:51
David Crow11-Feb-05 6:51 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 7:08
dr.eu11-Feb-05 7:08 
GeneralRe: Read file, write to array, find min and max Pin
Mattias G11-Feb-05 6:32
Mattias G11-Feb-05 6:32 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:35
rocky_pulley11-Feb-05 6:35 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:38
dr.eu11-Feb-05 6:38 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:41
rocky_pulley11-Feb-05 6:41 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:49
dr.eu11-Feb-05 6:49 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:52
rocky_pulley11-Feb-05 6:52 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 7:16
dr.eu11-Feb-05 7:16 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 8:12
David Crow11-Feb-05 8:12 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:30
dr.eu11-Feb-05 9:30 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 9:32
rocky_pulley11-Feb-05 9:32 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:44
dr.eu11-Feb-05 9:44 
QuestionHow to switch from vertical to gorizontal split windows? Pin
bilas11-Feb-05 5:33
bilas11-Feb-05 5:33 
GeneralDetection of code pages Pin
Mattias G11-Feb-05 5:24
Mattias G11-Feb-05 5:24 
GeneralConnecting database Pin
joy00711-Feb-05 5:01
joy00711-Feb-05 5:01 

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.