title: Glossary test from swedish to english
body: <p>This is my first thred here!</p>
  
  <p>This code is for a glossary test from swedish to english.</p>
  
  <p>I have problem with <code>(*it).engelska)</code>! And why cant i use <code>(*it).engelska</code> in this code?</p>
  
  <p>Many Thanks in advance!!</p>
  
  <pre><code>void prov(list&lt;Glosor&gt; lista)
  {
          string testet;
          int santal = 0;
          int rsvar = 0;
          list&lt;Glosor&gt;::iterator it;
          for(it = lista.begin(); it != lista.end(); it++){
              cout &lt;&lt; (*it).svenska &lt;&lt; " betyder på engelska: "; // *it writes the swedish word for translate.
              getline(cin, testet); //Here you write the english word and "if" function test if it's correct.
              if(testet == (*it).engelska){
                  cout &lt;&lt; "Ratt svar!\n";
                  rsvar++;
                  }
              else{
              cout &lt;&lt; "Tyvärr fel svar rätt svar är: "&lt;&lt; (*it).engelska) &lt;&lt; endl; // Here i use "it" to write the correct answare if you guess wrong. But it keep telling me "error: expected ';' before ')' token"
              }
              santal++;
          }
          cout &lt;&lt; "Du hade " &lt;&lt; rsvar &lt;&lt; " rätt svar av " &lt;&lt; santal &lt;&lt; " möjliga" &lt;&lt; endl;
  }
  </code></pre>