title: I'm stuck in this area. What show I do with this?
body: <p>I am doing this question for C++, and I cannot figure it out right now. What am I doing wrong with this one? Once again, this is in C++, not python.</p>
  <p>Capital Quiz</p>
  <p>Write a program that creates a map containing the U.S. states as keys, and their capitals as values. (Use the Internet to get a list of the states and their capitals.) The program should then randomly quiz the user by displaying the name of a state and ask the user to enter that state’s capital. The program should keep a count of the number of correct and incorrect responses. (As an alternative to the U.S. states, the program can use the names of countries and their capitals.)</p>
  <p>Here's my work so far:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;map&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
      map&lt;string, string&gt; states = {
  {&quot;Alabama&quot;, &quot;Montgomery&quot;}, {&quot;Alaska&quot;, &quot;Juneau&quot;}, {&quot;Arizona&quot;, &quot;Phoenix&quot;} {&quot;Arkansas&quot;,&quot;Little Rock&quot;},
          {&quot;California&quot;, &quot;Sacramento&quot;}, {&quot;Colorado&quot;, &quot;Denver&quot;}, {&quot;Connecticut&quot;, &quot;Hartford&quot;},
          {&quot;Delaware&quot;, &quot;Dover&quot;}, {&quot;Florida&quot;, &quot;Tallahassee&quot;}, {&quot;Georgia&quot;, &quot;Atlanta&quot;}, {&quot;Hawaii&quot;, &quot;Honolulu&quot;},
          {&quot;Idaho&quot;, &quot;Boise&quot;}, {&quot;Illinois&quot;, &quot;Springfield&quot;}, {&quot;Indiana&quot;, &quot;Indianapolis&quot;},
          {&quot;Iowa&quot;, &quot;Des Moines&quot;}, {&quot;Kansas&quot;, &quot;Topeka&quot;}, {&quot;Kentucky&quot;, &quot;Frankfort&quot;},
          {&quot;Louisiana&quot;, &quot;Baton Rouge&quot;}, {&quot;Maine&quot;, &quot;Augusta&quot;}, {&quot;Maryland&quot;, &quot;Annapolis&quot;},
          {&quot;Massachusetts&quot;, &quot;Boston&quot;}, {&quot;Michigan&quot;, &quot;Lansing&quot;}, {&quot;Minnesota&quot;, &quot;Saint Paul&quot;},
          {&quot;Mississippi&quot;, &quot;Jackson&quot;}, {&quot;Missouri&quot;, &quot;Jefferson City&quot;}, {&quot;Montana&quot;, &quot;Helena&quot;},
          {&quot;Nebraska&quot;, &quot;Lincoln&quot;}, {&quot;Nevada&quot;, &quot;Carson City&quot;}, {&quot;New Hampshire&quot;, &quot;Concord&quot;},
          {&quot;New Jersey&quot;, &quot;Trenton&quot;}, {&quot;New Mexico&quot;, &quot;Santa Fe&quot;}, {&quot;New York&quot;, &quot;Albany&quot;},
          {&quot;North Carolina&quot;, &quot;Raleigh&quot;}, {&quot;North Dakota&quot;, &quot;Bismarck&quot;}, {&quot;Ohio&quot;, &quot;Columbus&quot;},
          {&quot;Oklahoma&quot;, &quot;Oklahoma City&quot;}, {&quot;Oregon&quot;, &quot;Salem&quot;}, {&quot;Pennsylvania&quot;, &quot;Harrisburg&quot;},
          {&quot;Rhode Island&quot;, &quot;Providence&quot;}, {&quot;South Carolina&quot;, &quot;Columbia&quot;}, {&quot;South Dakota&quot;, &quot;Pierre&quot;},
          {&quot;Tennessee&quot;, &quot;Nashville&quot;}, {&quot;Texas&quot;, &quot;Austin&quot;}, {&quot;Utah&quot;, &quot;Salt Lake City&quot;},
          {&quot;Vermont&quot;, &quot;Montpelier&quot;}, {&quot;Virginia&quot;, &quot;Richmond&quot;}, {&quot;Washington&quot;, &quot;Olympia&quot;},
          {&quot;West Virginia&quot;, &quot;Charleston&quot;}, {&quot;Wisconsin&quot;, &quot;Madison&quot;}, {&quot;Wyoming&quot;, &quot;Cheyenne&quot;}
      };
      
      map&lt;string, string&gt;::iterator it;
      
      for (it = states.begin(); it != states.end(); it++){
          cout &lt;&lt; &quot;What is the capital of &quot; &lt;&lt; states.first &lt;&lt; &quot;?&quot; &lt;&lt; endl;
          cout &lt;&lt; states.first &lt;&lt; &quot; &quot; &lt;&lt; states.second &lt;&lt; endl;
      };
      
      return 0;
  }
  </code></pre>