Update Value in Vector
<pre><code>   void Record::Update() {

string choice;

cout &lt;&lt; "Enter ID: " &lt;&lt; endl;
cin &gt;&gt; IDValue;
  for(Itr = List.begin() ; Itr !=List.end() ; Itr+) {
   if(Itr-&gt;GetID() == IDValue)
    { 
    cout &lt;&lt; Transit-&gt;GetID() &lt;&lt; endl;
    cout &lt;&lt; "Would you like to set Name ?  (y/n) :";
    cin  &gt;&gt; choice;
    if ( choice == 'y' ) 
      cin &gt;&gt; strName;
    Itr-&gt;SetName(strName);

    cout &lt;&lt; Itr-&gt;GetName() &lt;&lt; endl;
    cout &lt;&lt; Itr-&gt;GetLocation() &lt;&lt; endl;
     }

   }
 }
</code></pre>

<p>This function finds a record by its unique ID number.  Each new record is given an ID number.  If I enter in ID 2 the function displays the record with ID 2.  How can I modify one of the attributes of the record?  In this case the location of it.</p>
