User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 422,549 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,702 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums

Maps in VC++ 6.0

Join Date: Sep 2004
Posts: 6,297
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 28
Solved Threads: 455
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Maps in VC++ 6.0

  #4  
Sep 19th, 2005
>and I get this error from putting this stuff in:
That's not an error, it's a warning that the Microsoft programmers aren't smart enough to realize that template identifiers get really really big, really really fast.

>The user will then be able to edit the value and have the program
>remap all occurances of that value to the new definition, while
>preserving the original CString in the key.
Well, there's only going to be one occurance of the value unless different keys can have the same value. But searching a map by value is a bitch. To change the value of a key/value pair, just do something like this:
m.find ( x )->second = y;
>I'll go learn a pseudocode method
Riiight. Pseudocode is easy, but what I asked for was some C++ that doesn't necessarily compile yet clearly shows us what you're trying to get done.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
All times are GMT -4. The time now is 12:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC