Where I get my c++ code wrong? Please help me.
#include#includeusing namespace std;void getSales(double *sales, int size);double totalSales(double *sales, int size);int main(){ const int QUARTERS=4; double sales[QUARTERS]; getSales(sales, QUARTERS); cout<> cout<><> cout<"the total="" sales="">"the> cout<><> return 0;}void getSales(double *array, int size){ for (int count=0; count { cout<"enter a="" sale="">"enter> cout<><> cin>>array[count]; }}
void getSales(double *sales, int size);double totalSales(double *sales, int size);
int main(){ const int QUARTERS=4; double sales[QUARTERS]; getSales(sales, QUARTERS); cout<> cout<><> cout<"the total="" sales="">"the> cout<><> return 0;}void getSales(double *array, int size){ for (int count=0; count { cout<"enter a="" sale="">"enter> cout<><> cin>>array[count]; }}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here