Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cfile question Pin
jafrazee12-Jun-02 17:21
jafrazee12-Jun-02 17:21 
GeneralLocal IP address Pin
ed987112-Jun-02 12:13
ed987112-Jun-02 12:13 
GeneralRe: Local IP address Pin
JohnnyG12-Jun-02 13:31
JohnnyG12-Jun-02 13:31 
GeneralRe: Local IP address Pin
JohnnyG12-Jun-02 13:34
JohnnyG12-Jun-02 13:34 
Generalmap or list? You decide! Pin
moredip12-Jun-02 12:04
moredip12-Jun-02 12:04 
GeneralRe: map or list? You decide! Pin
12-Jun-02 12:13
suss12-Jun-02 12:13 
GeneralRe: map or list? You decide! Pin
moredip12-Jun-02 12:15
moredip12-Jun-02 12:15 
GeneralRe: map or list? You decide! Pin
Tim Smith12-Jun-02 12:25
Tim Smith12-Jun-02 12:25 
It is hash_map <x,y>. You probably don't have it but no big deal. Map should work just fine.

If you did have have_map, ever increasing IDs wouldn't be a problem since the ID (used as the hash value) would be moduloed by a prime number. Thus as far as the hash is concerned, the values just roll over back to 0. But even that isn't something you have to worry about unless (ID % nHashPrime) is poorly distributed. (Which is probably isn't.)

(FYI: That was my response. Was having cookie problems.)

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralRe: map or list? You decide! Pin
moredip12-Jun-02 12:39
moredip12-Jun-02 12:39 
GeneralRe: map or list? You decide! Pin
Alexandru Savescu13-Jun-02 6:01
Alexandru Savescu13-Jun-02 6:01 
GeneralRe: map or list? You decide! Pin
soptest12-Jun-02 12:32
soptest12-Jun-02 12:32 
QuestionIs there a way to read a given sector on a harddrive? Pin
redeemer12-Jun-02 10:52
redeemer12-Jun-02 10:52 
AnswerRe: Is there a way to read a given sector on a harddrive? Pin
12-Jun-02 11:17
suss12-Jun-02 11:17 
Generaldetermination of file type Pin
12-Jun-02 10:29
suss12-Jun-02 10:29 
GeneralRe: determination of file type Pin
redeemer12-Jun-02 10:48
redeemer12-Jun-02 10:48 
GeneralRe: determination of file type Pin
12-Jun-02 10:53
suss12-Jun-02 10:53 
GeneralRe: determination of file type Pin
redeemer12-Jun-02 11:00
redeemer12-Jun-02 11:00 
GeneralRe: determination of file type Pin
12-Jun-02 11:05
suss12-Jun-02 11:05 
GeneralRe: determination of file type Pin
redeemer12-Jun-02 11:32
redeemer12-Jun-02 11:32 
GeneralRe: determination of file type Pin
Roger Wright12-Jun-02 13:25
professionalRoger Wright12-Jun-02 13:25 
GeneralRe: determination of file type Pin
Matt Gullett12-Jun-02 13:46
Matt Gullett12-Jun-02 13:46 
General10x Pin
12-Jun-02 14:07
suss12-Jun-02 14:07 
GeneralRe: determination of file type Pin
Nish Nishant12-Jun-02 14:31
sitebuilderNish Nishant12-Jun-02 14:31 
GeneralClosing VC++ exe from another application Pin
12-Jun-02 9:56
suss12-Jun-02 9:56 
GeneralRe: Closing VC++ exe from another application Pin
Alex Mitchell12-Jun-02 14:11
Alex Mitchell12-Jun-02 14:11 

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.