c++ - Error: No operator << matches these operands? -
i practicing c++ (trying leave java), , stumbled on annoying error saying:error: no operater << matches these operands. i've searched website clear answer , no luck, did find i'm not one.
this error in .cpp file, there other errors, i'm not paying mind them right now.
void namedstorm::displayoutput(namedstorm storm[]){ for(int = 0; < sizeof(storm); i++){ cout << storm[i] << "\n"; } }
something "<<" im not sure whats going on.
since trying cout
class object need overload <<
std::ostream& operator<<(ostream& out, const namedstorm& namedstorm)
Comments
Post a Comment