Help mE Their is Some MisTake.....

not compling
1
2
3
4
5
6
7
8
9
10
cout<<movi<<" is papuler Amoung Female's"<<endl;
}
else if(male > female && male > kids)
{
cout<<movi<<" Is papuler amoung Male's"<<endl;
}
else if(kids > female && kids > male)
{
cout<<movi<<" is Papule amoung Kids"<<endl;
}
Last edited on
Be more specific. Are you talking about compilation error's or logical error's ?

If logical, what exactly are you expecting and what the program is doing actually ?
@writeonsharma
Suppose three movies (Harry Potter, English Vinglish and Tekken) are on display in a cinema. Three different counters are distributing tickets for each movie. To purchase a particular movie ticket, you are required to stand in the respective movie counter queue.

Make you familiar with queue and linked list data structure and programming techniques to implement queue as linked list.

1
2
3
4
5
6
7
8
9
10
11
12
Considering the above scenario, write a C++ program which asks a user to choose the movie for which he/she would like to purchase a Ticket. While choosing the movie ticket, user should be asked to enter his/her social group [F for female, M for male and K for kids].
The required program functionalities should be:

Take input for all the three movies.

Display the total number of visitors for each movie.

Display total revenue of cinema and total revenue of each movie (Suppose price of one ticket is 650/-).

Display the best business earning movie of the cinema.

Check the popularity of each movie amongst social groups (females, males or kids).
And what is it doing now?

does "some error found" indicate a compilation error or something that is calculated wrong at runtime? No one is going to read 221 lines of un-indented code, then compare with your requirements.
Compile error
Change iostream.h to iostream and add #include <stdlib.h>

[Error] 'system' was not declared in this scope

[Warning] deprecated conversion from string constant to 'char*' [-Wwrite-
strings]
Actually you shouldn't be using system() at all, and don't use c-style strings but the C++ equivalent: std::string. Then all errors/warnings will disappear.
And never use conio.h, it's non-standard.
Topic archived. No new replies allowed.