Click here to Skip to main content
16,016,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Alt + F4 Pin
Tomasz Sowinski7-Aug-02 11:07
Tomasz Sowinski7-Aug-02 11:07 
GeneralRe: Alt + F4 Pin
Shog97-Aug-02 10:31
sitebuilderShog97-Aug-02 10:31 
GeneralRe: Alt + F4 Pin
Anonymous7-Aug-02 10:34
Anonymous7-Aug-02 10:34 
GeneralRe: Alt + F4 Pin
Shog97-Aug-02 11:45
sitebuilderShog97-Aug-02 11:45 
GeneralRe: Alt + F4 Pin
alex.barylski7-Aug-02 11:51
alex.barylski7-Aug-02 11:51 
GeneralRe: Alt + F4 Pin
Chris Losinger7-Aug-02 13:21
professionalChris Losinger7-Aug-02 13:21 
GeneralRe: Alt + F4 Pin
alex.barylski7-Aug-02 14:39
alex.barylski7-Aug-02 14:39 
GeneralSTL Question Pin
JohnnyG7-Aug-02 9:23
JohnnyG7-Aug-02 9:23 
Is there any template class in STL that I can use to see if there are duplicates of a type? And, if so how many? I mean will any of these containers at least give you an error so that you know it is already in there?

Let's say I use an array or map or multimap, when I add a object of the same value, it notifies me so that I can keep track of how many duplicates I have. Would be nice if it did it automatically.

Example: I have a container of shorts. I add the values 1204, 1033, 1422, and then 1204 again. I don't really need 1204 added again, I just want some counter for 1204 to increment to 2. Later, I only want to print out containers that have duplicates and add the count of all the duplicates together? Actually, for now I don't even need the containers, I just need the count of duplicates.

Oh yeah, I guess I should say speed is sort of an issue here. I have to add up to 500 of these 4 digit octal code values within 4.6 secs mininmum. I don't want it to take long to find duplicates. Meaning, I don't want to have to do a for loop to find a duplicate, I'm hoping STL will do it for me via a hash or something. And everytime I add one of these values, I want to update the duplicate count immediately.
GeneralRe: STL Question Pin
Christian Graus7-Aug-02 10:02
protectorChristian Graus7-Aug-02 10:02 
GeneralRe: STL Question Pin
JohnnyG7-Aug-02 10:31
JohnnyG7-Aug-02 10:31 
GeneralRe: STL Question Pin
dabs7-Aug-02 10:10
dabs7-Aug-02 10:10 
GeneralRe: STL Question Pin
JohnnyG7-Aug-02 10:24
JohnnyG7-Aug-02 10:24 
GeneralRe: STL Question Pin
Tomasz Sowinski7-Aug-02 10:35
Tomasz Sowinski7-Aug-02 10:35 
GeneralRe: STL Question Pin
Christian Graus7-Aug-02 11:55
protectorChristian Graus7-Aug-02 11:55 
GeneralRe: STL Question Pin
Tomasz Sowinski7-Aug-02 11:57
Tomasz Sowinski7-Aug-02 11:57 
GeneralRe: STL Question Pin
Chris Losinger7-Aug-02 13:17
professionalChris Losinger7-Aug-02 13:17 
GeneralRe: STL Question Pin
Todd Smith8-Aug-02 18:45
Todd Smith8-Aug-02 18:45 
GeneralRe: STL Question Pin
Tomasz Sowinski8-Aug-02 23:21
Tomasz Sowinski8-Aug-02 23:21 
GeneralRe: STL Question Pin
Todd Smith8-Aug-02 18:47
Todd Smith8-Aug-02 18:47 
GeneralRe: STL Question Pin
Christian Graus8-Aug-02 19:09
protectorChristian Graus8-Aug-02 19:09 
GeneralRe: STL Question Pin
Todd Smith9-Aug-02 5:53
Todd Smith9-Aug-02 5:53 
GeneralVisual Studio.NET: small rant Pin
Le centriste7-Aug-02 9:16
Le centriste7-Aug-02 9:16 
GeneralRe: Visual Studio.NET: small rant Pin
Rob Caldecott7-Aug-02 9:17
Rob Caldecott7-Aug-02 9:17 
GeneralRe: Visual Studio.NET: small rant Pin
Michael P Butler7-Aug-02 22:14
Michael P Butler7-Aug-02 22:14 
GeneralNeed a edit class with hyperlinks support! Commercial or demo. Pin
Pavel Sokolov7-Aug-02 8:40
Pavel Sokolov7-Aug-02 8:40 

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.