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