how we write array for dis problem:
int movie title;
int no of customer ;
int no of day ;
double ticketprice ;
double drinksprice ;
double studentprice ;
anyone knows??
actually, i'm bit confused about dis;
for example,
cout<<" Enter movie title "
cin>> movietitle [i];
then, i want to calculate the ticket price,
so i write ;
for ( i=0 ; i=no; i++ )
{
if (movietitle[i]==1)
TicketPrice[i]=11.00;
else
if (movietitle[i]==2)
TicketPrice[i]=12.00;
else
if (movietitle[i]==3)
TicketPrice[i]=13.00;
}
can i use 'i' again?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.