将下面C语言风格的句子转变成C++风格的句子 fprintf(fp,"%s ", in[i].F_Name); fprintf(fp," %-8d ", in[i].F_num); fprintf(fp," %-8f ", in[i].price); fprintf(fp," %-8s ", in[i].description); fprintf(fp," %-8s ", in[i].F_Spec); fprintf(fp," \n\n ");
时间: 2024-03-31 12:34:18 浏览: 124
file_fprintf.rar
fp << in[i].F_Name << " " << setw(8) << in[i].F_num << " " << setw(8) << in[i].price << " " << setw(8) << in[i].description << " " << setw(8) << in[i].F_Spec << " \n\n ";
阅读全文