帮助我使用 非常感谢大家
int main()
{
int W; cout<< "Nhap tong khoi luong: "; cin >> W;
int n; cout << "Nhap so do vat: "; cin>> n;
int weight[100], worth[100];
for(int i = 1; i<= n; i++)
{
cout<< "Nhap weight[" << i <<"]:"; cin >> weight[i];
cout<< "Nhap worth[" << i <<"]:"; cin >> worth[i];
}
}
C++到Python的出现:
相关问题 更多 >
编程相关推荐