将下面C语言风格的句子转变成C++风格的句子printf(" 菜名: "); scanf("%s", &in[i].F_Name); printf(" 编号: "); scanf("%d", &in[i].F_num); printf(" 价格: "); scanf("%f", &in[i].price); printf(" 菜品特色: "); scanf("%s", &in[i].description); printf(" 菜品规格: "); scanf("%s", &in[i].F_Spec);
时间: 2023-07-18 07:52:14 浏览: 130
STM32在C++上重定向printf,亲测能用
cout << "菜名: ";
cin >> in[i].F_Name;
cout << "编号: ";
cin >> in[i].F_num;
cout << "价格: ";
cin >> in[i].price;
cout << "菜品特色: ";
cin >> in[i].description;
cout << "菜品规格: ";
cin >> in[i].F_Spec;
阅读全文