将C风格的语句改为C++ printf(" 用户姓名: "); scanf("%s", &in[i].G_Name); printf(" 用户编号: "); scanf("%d", &in[i].G_num); printf(" 用户电话: "); scanf("%ld", &in[i].iphone); printf(" 用户余额: "); scanf("%f", &in[i].balance); printf("\n");}
时间: 2023-07-18 08:52:14 浏览: 205
cout << " 用户姓名: ";
cin >> in[i].G_Name;
cout << " 用户编号: ";
cin >> in[i].G_num;
cout << " 用户电话: ";
cin >> in[i].iphone;
cout << " 用户余额: ";
cin >> in[i].balance;
cout << "\n";
阅读全文