Box It!

  • + 0 comments

    Hello, this approach doesnt work for me, dont know why ! [UPDATE] friend worked

    Solution.cpp:74:49: error: ‘std::ostream& Box::operator<<(std::ostream&, Box&)’ must have exactly one argument ostream& operator<<(ostream& out, Box& B) { ^ Solution.cpp: In function ‘void check2()’: Solution.cpp:114:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘Box’) cout<