Talk About Network

Google





Programming > C - C++ Learning > Update map Obje...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4110 of 4400
Post > Topic >>

Update map Object

by mrc2323@[EMAIL PROTECTED] (Mike Copeland) Apr 13, 2008 at 09:13 AM

I have an STL map declared:
struct CLIENTSTRUCT
                                  // Individual Department info
  int    clientKey;                                // ClientKey
  int    enrollKey;                     // Enrollment ClientKey
  int    guarantorKey;                   // Guarantor ClientKey
  string clientName;                             // Client Name
} clientWork;
typedef map<int, CLIENTSTRUCT> CLIENTS;
        CLIENTS	 clientData;
        map<int, CLIENTSTRUCT>::const_iterator cIter;

   I have seccessfully been able to populate the map with initial data 
(via .insert), but I can't figure out how to _update_ the map objects.
Specifically, I need to modify rhe "enrollKey" and "guarantorKey" 
elements of various objects after I use .find and the iterator cIter.  
None of my references (nor google) points me in the right direction.  
Please advise  TIA
 




 2 Posts in Topic:
Update map Object
mrc2323@[EMAIL PROTECTED]  2008-04-13 09:13:56 
Re: Update map Object
"Andrew Koenig"  2008-04-13 16:19:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 11:50:50 PST 2009.