cout error c2679

When I using a string, leading, followed by an int root-value. It prompt C2679 error. How should I fix it?

cout << leadings << root->value << endl;

Error 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' (or there is no acceptable conversion) c:\msoe\ms3812c++\priorityheap\priorityheap\random.cpp 82 1 PriorityHeap
#include <string>
Thank you! It works.
Topic archived. No new replies allowed.