1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
// BEGIN DL's function prototypes
int getInventory (vector<string> u/*[]*/, int v[], double w[], double x[], int y[]); //getInventory Function Prototype
// END DL's function prototypes
int main()
{
//declare variables
int choice; //holds the menu choice the user entered
string itemIDEntered; //holds the itemID the user enters to search for in choice 1
string itemIDToSell; //holds the itemID the user enters to sell in choice 2
vector<string> itemID(2);
vector<string> itemName(2);
vector<int> pOrdered(2);
vector<int> pInStore(2);
vector<int> pSold(2);
vector<double> manufPrice(2);
vector<double> sellingPrice(2);
ifstream infile;
// BEGIN getInventory Function call (DL)
getInventory(itemName, itemID, manufPrice, sellingPrice, pInStore); // Calls getInventory Function
// END getInventory Function call (DL)
// BEGIN getInventory Function
// int getInventory (string u[], int v[], double w[], double x[], int y[])
int getInventory (vector<string> u/*[]*/, int v[], double w[], double x[], int y[])
/*
itemName = U
itemID = V
manufPrice = W
sellingPrice = X
pInStore = Y
*/
|