编写一个函数:
calcAmount(double* prices, double* units, double* amouts, int elms),
储存乘积 金额数组中价格和单位数组的对应值(例如,amounts[i]=price[i]*units[i])我写的
但是就是不对。谢谢
形参要求指针呀,你没用指针,下面怎么能用数组访问