error: no match for ‘operator<<’ (operand types are ‘std::basic_
(認知有限,如有不妥,還請告知,歡迎討論)
完整報錯:error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
解決方法:
加上#include <iostream>
=END=
=reference=
[1]https://stackoverflow.com/questions/42175638/error-while-operator-overloading-error-no-match-for-operator-operand-type
標簽: