欢迎光临散文网 会员登陆 & 注册

error: no match for ‘operator<<’ (operand types are ‘std::basic_

2022-04-16 23:52 作者:LogByMax  | 我要投稿

(认知有限,如有不妥,还请告知,欢迎讨论)

完整报错: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



error: no match for ‘operator<<’ (operand types are ‘std::basic_的评论 (共 条)

分享到微博请遵守国家法律