使用 ifstream 从文件中读取数据: std::ifstream input( "filename.ext" );. 如果您确实需要逐行阅读,请执行以下操作: for( std::string line; getline( input, ...
確定! 回上一頁