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

C / C++ / MFC

 
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 
GeneralRe: STL Question Pin
Christian Graus7-Aug-02 10:02
protectorChristian Graus7-Aug-02 10:02 
Set and map will both contain only one value the same, map will overwrite the old one if you put one in the same. You can check yourself if a value is there with any container by checking like this:

mycont::iterator it = find(mycont.begin(), mycont.end(), value);

if (it != mycont.end()) // then the value is there

If a container has a member find function ( such as list does, from memory ) you should use that instead

I believe the STL also has algorithms to count duplicate values. You could certainly write a functor to use with accumulate to count the value of adding duplicates. If you want something more specialised in how it handles duplicate values, that impliments reference counting, you may need to write it yourself. I have never used a hash_map ( which is a non-std container, but present in .NET and also in stpport ), but it's concievable that a good hash algorithm will fill each bucket with only entries of the same value.


Christian

We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )

Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
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 
GeneralRe: Need a edit class with hyperlinks support! Commercial or free. Pin
Pavel Sokolov7-Aug-02 8:45
Pavel Sokolov7-Aug-02 8:45 

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.