C++相談室 part19
■ このスレッドは過去ログ倉庫に格納されています
0650645
NGNG#include <string>
#include <fstream>
using namespace std;
void mygetline(ifstream& file){
string s;
getline(file, s);
cout << s << endl;
}
main()
{
ifstream file("hogehoge.txt");
mygetline(file);
}
です。
■ このスレッドは過去ログ倉庫に格納されています