原文:error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_s

没有添加头文件 lt string gt ,cout不能直接输出string类的变量。 ...

2012-06-08 08:02 0 3176 推荐指数:

查看详情

关于java中的“error: bad operand types for binary operator

今天做这个题目的时候(142. O(1) Check Power of 2),遇到一个错误“ bad operand types for binary operator '&' ”。 先贴一下代码: 报错: 一开始猜到是运算符的问题,但是也排除了。一直 ...

Tue May 29 01:51:00 CST 2018 0 5593
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM