ofstream outfile; outfile.open("file.dat", ios::out | ios::trunc ); ... std; int main () { char data[100]; // open a file in write mode. ofstream outfile; ...
確定! 回上一頁