#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream thefile("players.txt");
cout << "enter players ID " << endl;
cout << "press ctrl+z to quit" << endl;
int idnumber;
string name;
double money;
while(cin >> idnumber >> name >> money)
{
thefile << idnumber << ' ' << name << ' ' << money << endl;
}
}
网友评论