title: Queue from struct type
body: <p>Ok, that is my struct:</p>
  
  <pre><code>struct sudurjanie {
      string stoka_ime;
      string proizvoditel;
      double cena;
      int kolichestvo;
  };
  </code></pre>
  
  <p>Next I create queue:</p>
  
  <pre><code>queue&lt;sudurjanie&gt; q;
  </code></pre>
  
  <p>But when I write this:</p>
  
  <pre><code>cin &gt;&gt; q.push(sudurjanie.stoka_ime);
  </code></pre>
  
  <p>In error list write this:</p>
  
  <blockquote>
    <p>IntelliSense: a nonstatic member reference must be relative to a specific object</p>
  </blockquote>
  
  <p>Ok, when I try this:</p>
  
  <pre><code>cout &lt;&lt; q.back();
  </code></pre>
  
  <p>, why write this:</p>
  
  <blockquote>
    <p>no operator <code>"&lt;&lt;"</code> matches these operands</p>
  </blockquote>
  
  <p>?</p>