Click here to Skip to main content
16,005,120 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralMixing managed and unmanaged code Pin
Alexandru Savescu6-Jun-02 0:58
Alexandru Savescu6-Jun-02 0:58 
GeneralRe: Mixing managed and unmanaged code Pin
Nish Nishant6-Jun-02 1:38
sitebuilderNish Nishant6-Jun-02 1:38 
GeneralRe: Mixing managed and unmanaged code Pin
Alexandru Savescu7-Jun-02 10:00
Alexandru Savescu7-Jun-02 10:00 
GeneralRe: Mixing managed and unmanaged code Pin
Nish Nishant7-Jun-02 14:07
sitebuilderNish Nishant7-Jun-02 14:07 
GeneralRe: Mixing managed and unmanaged code Pin
Alexandru Savescu7-Jun-02 21:48
Alexandru Savescu7-Jun-02 21:48 
GeneralRe: Mixing managed and unmanaged code Pin
Nish Nishant7-Jun-02 21:45
sitebuilderNish Nishant7-Jun-02 21:45 
GeneralFatest Way Around Pin
Sidney5-Jun-02 15:33
Sidney5-Jun-02 15:33 
GeneralRe: Fatest Way Around Pin
Alexandru Savescu5-Jun-02 18:01
Alexandru Savescu5-Jun-02 18:01 
I will give you a fast, but memeory consuming solution.
Use a std::map to store the name as keys and you make a struct to store the address. Read the whole file and fill the map. Then, when you search the name you will use std::map::find that will do a binary search.
At the end of the program you iterate through the map and write it to the file.

If you have multiple entries with the same name you may consider multimap. Since you post it to the Manage C++ you may also consider hash_map.

Best regards,
Alexandru Savescu
GeneralRe: Fatest Way Around Pin
Sidney5-Jun-02 18:22
Sidney5-Jun-02 18:22 
GeneralRe: Fatest Way Around Pin
Alexandru Savescu5-Jun-02 18:22
Alexandru Savescu5-Jun-02 18:22 
GeneralRe: Fatest Way Around Pin
Sidney6-Jun-02 9:06
Sidney6-Jun-02 9:06 
GeneralRe: Fatest Way Around Pin
Alexandru Savescu6-Jun-02 9:35
Alexandru Savescu6-Jun-02 9:35 
GeneralRe: Fatest Way Around Pin
Sidney6-Jun-02 11:04
Sidney6-Jun-02 11:04 
GeneralRe: Fatest Way Around Pin
Alexandru Savescu6-Jun-02 19:50
Alexandru Savescu6-Jun-02 19:50 
GeneralRe: Fatest Way Around Pin
Sidney5-Jun-02 18:28
Sidney5-Jun-02 18:28 
GeneralRe: Fatest Way Around Pin
Sidney6-Jun-02 9:03
Sidney6-Jun-02 9:03 
GeneralRe: Fatest Way Around Pin
Alexandru Savescu7-Jun-02 10:03
Alexandru Savescu7-Jun-02 10:03 
QuestionWinForms? Pin
Alexandru Savescu3-Jun-02 11:55
Alexandru Savescu3-Jun-02 11:55 
AnswerRe: WinForms? Pin
James T. Johnson3-Jun-02 12:27
James T. Johnson3-Jun-02 12:27 
AnswerRe: WinForms? Pin
Rama Krishna Vavilala3-Jun-02 15:42
Rama Krishna Vavilala3-Jun-02 15:42 
AnswerRe: WinForms? Pin
Nish Nishant3-Jun-02 19:31
sitebuilderNish Nishant3-Jun-02 19:31 
GeneralRe: WinForms? Pin
Alexandru Savescu4-Jun-02 6:41
Alexandru Savescu4-Jun-02 6:41 
GeneralRe: WinForms? Pin
Nish Nishant4-Jun-02 17:30
sitebuilderNish Nishant4-Jun-02 17:30 
QuestionDo I have to use pointers only? Pin
Alexandru Savescu2-Jun-02 21:57
Alexandru Savescu2-Jun-02 21:57 
AnswerRe: Do I have to use pointers only? Pin
Nish Nishant3-Jun-02 4:20
sitebuilderNish Nishant3-Jun-02 4:20 

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.