Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGlolbal mouse hotkey Pin
28-Apr-02 17:53
suss28-Apr-02 17:53 
GeneralRe: Glolbal mouse hotkey Pin
Nish Nishant28-Apr-02 19:54
sitebuilderNish Nishant28-Apr-02 19:54 
GeneralRe: Glolbal mouse hotkey Pin
28-Apr-02 20:25
suss28-Apr-02 20:25 
Generalusing strings as key for std::hash_map Pin
28-Apr-02 17:16
suss28-Apr-02 17:16 
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell29-Apr-02 13:40
Mike Nordell29-Apr-02 13:40 
GeneralRe: using strings as key for std::hash_map Pin
Chris Hafey29-Apr-02 13:56
Chris Hafey29-Apr-02 13:56 
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell29-Apr-02 14:44
Mike Nordell29-Apr-02 14:44 
GeneralRe: using strings as key for std::hash_map Pin
29-Apr-02 16:20
suss29-Apr-02 16:20 
I am sure this issue has been discussed in depth, in fact I bet this issue is exactly why hash_map didn't make it into the original standard. I am very well aware that different hash algorithms have different characteristics. I am also very aware that there are some which are considered very good for general purpose use. Just because there is no one algorithm that meets everyones needs doesn't mean there shouldn't be one selected as the default for strings. Besides, if someone has a need to use a different algorithm, it is just a matter of specifying it at as the third parameter.

Challenging me to proove that 90% of hash tables use strings makes you look like a fool. Can you honestly say that this is not a reasonable estimation? I never claimed to be an authority in C++, but I am a user with a very strong background in C++. This whole thread is about usability, something you seem to feel takes a backseat to design purity. Don't take me wrong, I am all for design purity, but sometimes a bit more usability for the majority is worth the expense of some purity.

Finally I urge you to think about how you responded to this thread. Your attitude was uncalled for and did nothing to help the discussion. If you think acting like an ass hole earns you respect, you have a lot to learn.
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell1-May-02 10:15
Mike Nordell1-May-02 10:15 
GeneralNeed C++ code running in dos base to turn computer off. Pin
Ronnie28-Apr-02 15:22
Ronnie28-Apr-02 15:22 
GeneralRe: Need C++ code running in dos base to turn computer off. Pin
Nish Nishant28-Apr-02 17:29
sitebuilderNish Nishant28-Apr-02 17:29 
GeneralRe: Need C++ code running in dos base to turn computer off. Pin
Mike Nordell29-Apr-02 13:43
Mike Nordell29-Apr-02 13:43 
QuestionHow to pass data to a C++ program during a dialog when a button is pressed? Pin
Learning28-Apr-02 11:37
Learning28-Apr-02 11:37 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Tim Smith28-Apr-02 11:48
Tim Smith28-Apr-02 11:48 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz28-Apr-02 23:51
Joao Vaz28-Apr-02 23:51 
GeneralRe: InterlockedIncrement ... Pin
Tim Smith29-Apr-02 2:31
Tim Smith29-Apr-02 2:31 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz29-Apr-02 2:38
Joao Vaz29-Apr-02 2:38 
GeneralRe: InterlockedIncrement ... Pin
Tim Smith29-Apr-02 2:51
Tim Smith29-Apr-02 2:51 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz29-Apr-02 2:57
Joao Vaz29-Apr-02 2:57 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Joaquín M López Muñoz28-Apr-02 11:50
Joaquín M López Muñoz28-Apr-02 11:50 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Ravi Bhavnani28-Apr-02 12:15
professionalRavi Bhavnani28-Apr-02 12:15 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Nish Nishant28-Apr-02 14:16
sitebuilderNish Nishant28-Apr-02 14:16 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Gaurika Wijeratne28-Apr-02 19:28
Gaurika Wijeratne28-Apr-02 19:28 
GeneralStopping a video when any key is pressed Pin
28-Apr-02 11:06
suss28-Apr-02 11:06 
GeneralRe: Stopping a video when any key is pressed Pin
29-Apr-02 5:29
suss29-Apr-02 5: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.