Wednesday, 15 July 2015

c++ - Changing from netbeans to VS. NB had no errors. VS found some and I can't fix them -



c++ - Changing from netbeans to VS. NB had no errors. VS found some and I can't fix them -

template <class t> void infront<t>::escreve(ostream& ostr) const { vector < deque <t> > aux = vet; (size_t = 0; < aux.size(); i++) { ostr << "sequencia: " << << endl; (size_t j = 0; j < aux[i].size(); j++) { ostr << aux[i].front() << endl; aux[i].pop_front(); } } ostr << endl; }

this error:

error c2679: binary '<<' : no operator found takes right-hand operand of type 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' (or there no acceptable conversion).

it happens on line

ostr << aux[i].front() << endl;

on netbeans ran changing vs showed previous error. had switch int size_t already, can't utilize anymore?

you didn't include headers need. add together this

#include <string>

c++ visual-studio netbeans

No comments:

Post a Comment