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