The prototypes are these:
Code:
//uses MoneyMenu function to display and collect dollar amounts from the user
//uses CheckMoney function to keep comparing the added deposited amount to the item cost.
void GetMoney(double *bank, double item_cost, char selection);
//Displays the codes for money input- gets user input amounts
//compares the int codes and updates the bank amount entered
void MoneyMenu(double *bank, double item_cost);
//compares the amount the user has in the bank to the price of item selected.
//It returns 1 if the amount is enough to cover the cost, 0 if there is not enough.
int CheckMoney(double bank, double item_cost);
And the errors my complier gives are these:
Code:
1>------ Build started: Project: appStore, Configuration: Debug Win32 ------
1> appStore.c
1>c:\documents and settings\kyle\desktop\intro to programming in c\appstore\appstore.c(138): warning C4047: 'function' : 'double *' differs in levels of indirection from 'double **'
1>c:\documents and settings\kyle\desktop\intro to programming in c\appstore\appstore.c(138): warning C4024: 'MoneyMenu' : different types for formal and actual parameter 1
1>c:\documents and settings\kyle\desktop\intro to programming in c\appstore\appstore.c(139): error C2440: 'function' : cannot convert from 'double *' to 'double'
1>c:\documents and settings\kyle\desktop\intro to programming in c\appstore\appstore.c(139): warning C4024: 'CheckMoney' : different types for formal and actual parameter 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========