Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fast Fourier Transform Pin
Cedric Moonen11-Mar-03 23:10
Cedric Moonen11-Mar-03 23:10 
GeneralRe: Fast Fourier Transform Pin
asmaa salem23-May-09 2:18
asmaa salem23-May-09 2:18 
GeneralRe: Fast Fourier Transform Pin
Chris Losinger12-Mar-03 1:46
professionalChris Losinger12-Mar-03 1:46 
GeneralRe: Fast Fourier Transform Pin
73Zeppelin12-Mar-03 3:18
73Zeppelin12-Mar-03 3:18 
GeneralRe: Fast Fourier Transform Pin
Chris Losinger12-Mar-03 5:38
professionalChris Losinger12-Mar-03 5:38 
GeneralWall paper Program Pin
RaajaOfSelf11-Mar-03 22:32
RaajaOfSelf11-Mar-03 22:32 
GeneralRe: Wall paper Program Pin
ramki kicha12-Mar-03 0:06
sussramki kicha12-Mar-03 0:06 
GeneralWhich container should i choose Pin
Shehzad Jamil11-Mar-03 22:29
sussShehzad Jamil11-Mar-03 22:29 
Friends,

When my program starts, I am storing various unique integer values in std::vector maximum 150 in numbers. All values stored are guaranteed to be unique.

Later at any stage, my program receive certain amounts of numbers from the server, and i need to compare each number with the numbers stored in the vector, to find whether this number is already present or not.

The problem is that for comparison each time i need to iterate 150 times, and if the server sends too many numbers then i need to iterate 150 times for each of these numbers comparison.

For comparison i am using vector iterator and moving it from beginning to end of vector, extract value and then compare it.

Is there any efficient way doing that ??? Is there any other container available which provides the function like find() which automatically do lookups and tells me whether the value is already present or not ???
GeneralRe: Which container should i choose Pin
Christian Graus11-Mar-03 22:56
protectorChristian Graus11-Mar-03 22:56 
GeneralRe: Which container should i choose Pin
HJo11-Mar-03 23:08
HJo11-Mar-03 23:08 
GeneralRe: Which container should i choose Pin
markkuk12-Mar-03 0:27
markkuk12-Mar-03 0:27 
GeneralRe: Which container should i choose Pin
Tim Smith12-Mar-03 1:59
Tim Smith12-Mar-03 1:59 
GeneralRe: Which container should i choose Pin
Alexandru Savescu12-Mar-03 5:54
Alexandru Savescu12-Mar-03 5:54 
GeneralRe: Which container should i choose Pin
Tim Smith12-Mar-03 8:12
Tim Smith12-Mar-03 8:12 
GeneralRe: Which container should i choose Pin
atreya12-Mar-03 6:35
atreya12-Mar-03 6:35 
GeneralRe: Ok, I geeked out Pin
Tim Smith12-Mar-03 8:08
Tim Smith12-Mar-03 8:08 
GeneralBarcode generator Pin
Chintan11-Mar-03 21:14
Chintan11-Mar-03 21:14 
GeneralRe: Barcode generator Pin
Johnny ²11-Mar-03 21:36
Johnny ²11-Mar-03 21:36 
GeneralRe: Barcode generator Pin
Chintan12-Mar-03 21:38
Chintan12-Mar-03 21:38 
QuestionSockets - recv - Number of received bytes? Pin
Daniel Strigl11-Mar-03 20:59
Daniel Strigl11-Mar-03 20:59 
AnswerRe: Sockets - recv - Number of received bytes? Pin
valikac11-Mar-03 21:17
valikac11-Mar-03 21:17 
AnswerRe: Sockets - recv - Number of received bytes? Pin
Johnny ²11-Mar-03 21:40
Johnny ²11-Mar-03 21:40 
AnswerRe: Sockets - recv - Number of received bytes? Pin
Tim Smith12-Mar-03 2:03
Tim Smith12-Mar-03 2:03 
AnswerRe: Sockets - recv - Number of received bytes? Pin
Joseph Dempsey13-Mar-03 8:20
Joseph Dempsey13-Mar-03 8:20 
GeneralRe: Sockets - recv - Number of received bytes? Pin
Daniel Strigl13-Mar-03 8:34
Daniel Strigl13-Mar-03 8:34 

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.