I'm making a delivery system like the McDelivery system using structures. I have this code to store the customer's order data and his/her info.
struct customer
{
int contactno;
char firstname[20], lastname[20];
struct order
{
struct date
{
int day, month, year;
}orderdate;
}o;
}c;
Then I used array to store the item's info and i have this code
int spaghetti[2], fries[2], icecream[2], MonsterMcBurger[2], SuicideBurger[2], VeggieWhooper[2], GrandSlam[2], BiscottiFrappuccino[2], CaptainCrunch[2], PizzaSub[2];
I have no problem inserting the price of each item but I'm having trouble on how you put the item's name in array. Is it possible to assign a text in array? if not what code should I use to store the name and the price of the item at the same time?