原文:C++出現 error: no match for 'operator>>' (operand types are 'std::ofstream {aka std::basic_ofstream }' and 'char')

從CSV文件中讀取數據代碼: 運行報錯: error: no match for operator gt gt operand types are std::ofstream aka std::basic ofstream lt char gt and char ifs gt gt ch 分析和解決: 上面的代碼是用ofstream打開文件,即寫入的方式,但是后面卻用它來讀取文件ifs gt gt ...

2021-01-27 10:23 0 1402 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM