J
Jeff0803
Guest
I made a vector<string> like following
vector<string> philosopher = { "Kant", "Plato", "Hume", "Kierkegaard" };
for (string xhilosopher) //for each x in v
cout << x << endl;
However compile error occur.
Error C2679 binary '<<': no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
How to make it work?
Continue reading...
vector<string> philosopher = { "Kant", "Plato", "Hume", "Kierkegaard" };
for (string xhilosopher) //for each x in v
cout << x << endl;
However compile error occur.
Error C2679 binary '<<': no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
How to make it work?
Continue reading...