提问:getline没有重载函数的实例与参数列表匹配是什么意思?如何解决?
这样写 getline(ifs, buf.c_str())
第二个参数是char[]类型,将string buf改为char buf[1024]。