C++ ifstream error using string as opening file path. ... expects a const char* , so you need to do ifstream file(filename.c_str()); to make it work.
確定! 回上一頁