原文: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