sociem
2021-05-20 13:48
采纳率: 50%
浏览 39

getline无法将参数1从“std::ifstream"转换为"_Elem*

std::ifstream purchasefile;
purchasefile.open(cmmodity_file_name);
if (!purchasefile)  std::cout << "fail!";
else {
	std::string line;
	while (std::cin.getline(purchasefile, line)) 

2条回答 默认 最新

相关推荐 更多相似问题