title: Lost once adding extra complexity
body: <p>Just so this does not seem too out of context and so I don't have to re-post ALL my code, here is my original question: <a href="https://stackoverflow.com/questions/12336387/object-is-initializing-to-unwanted-value">Object is initializing to unwanted value</a></p>
  
  <p><strong>Question:</strong> How do I design the following code, within the for loop, so that it is a Transaction method, such as void Transaction::promptUser() and then asks the user whether they would like to perform a transaction on their checking or savings account? It will then ask what transaction they will want to do and it will affect the corresponding account. </p>
  
  <pre><code>   int main () {
   BankAccount checking(0.00);
      BankAccount savings(0.00);
      Transaction c(checking);
      Transaction s(savings);
      for(int i = 0; i &lt; 10 ; i++) {
          cout &lt;&lt; "Make an option" &lt;&lt; endl;
          cout &lt;&lt; "1. Checking "   &lt;&lt; endl;
          cout &lt;&lt; "2. Savings"     &lt;&lt; endl;
  
          int choice;
          cin &gt;&gt; choice;
          if (choice == 1) {
              c.prompt();
              c.printReciept();
          }
          else {
              s.prompt();
              s.printReciept();
          }
      }
  }
  </code></pre>