将C风格的语句改为C++ printf("\n 用户编号: "); printf("%d", ret[i].G_num); printf("\n 用户姓名: "); printf("%s", ret[i].G_Name); printf("\n 用户电话: "); printf("%ld", ret[i].iphone); printf("\n 用户余额: "); printf("%f", ret[i].balance);
时间: 2023-07-19 21:50:50 浏览: 23
cout << "\n 用户编号: " << ret[i].G_num;
cout << "\n 用户姓名: " << ret[i].G_Name;
cout << "\n 用户电话: " << ret[i].iphone;
cout << "\n 用户余额: " << ret[i].balance;
相关问题
将C风格的语句改为C++ printf("\n 用户编号: "); printf("%d", ret[i].G_num); printf("\n 用户姓名: "); printf("%s", ret[i].G_Name); printf("\n 用户电话: "); printf("%ld", ret[i].iphone); printf("\n 用户余额: "); printf("%f", ret[i].balance);
cout << "\n 用户编号: " << ret[i].G_num;
cout << "\n 用户姓名: " << ret[i].G_Name;
cout << "\n 用户电话: " << ret[i].iphone;
cout << "\n 用户余额: " << ret[i].balance;
将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);
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;
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)