将C风格的语句改为C++printf("\n 编号: "); printf(" %d ", ret[i].F_num); printf("\n 菜名: "); printf(" %s ", ret[i].F_Name); printf("\n 价格: "); printf(" %f ", ret[i].price); printf("\n 菜品特色: "); printf(" %s ", ret[i].description); printf("\n 菜品规格: "); printf(" %s ", ret[i].F_Spec);
时间: 2023-07-19 11:50:50 浏览: 117
手把手教你实现printf.7z
cout << "\n 编号: " << ret[i].F_num;
cout << "\n 菜名: " << ret[i].F_Name;
cout << "\n 价格: " << ret[i].price;
cout << "\n 菜品特色: " << ret[i].description;
cout << "\n 菜品规格: " << ret[i].F_Spec;
阅读全文