Okay I want to make a program were the user inputs a name of an item and the proce of the item than keeps doing it till the user want to stop. Now my question is how should I store the users input? through multable varables...
or use araysCode:char ItemOne int itemPriceOne
now that isn't my finle program it is just an idea of what i want to do. So should I use varables or arrays?Code:string itemname[128] int itemprice[128] int main() { cout << "Enter item name: " cin << itemname[1] if(itemname[1] = "done") { displayinfo(void) } else { main() }
~StormTrooper