1

You have one of your cin's with operators going the wrong way << you want it >> like the rest of them.

Also, you have it so it compares the input to a variable that are not assigned. Either assign Apples, Oranges, Pears or change your if() statements to

if (fruit == "Apples")
if (fruit == "Oranges")
if (fruit == "Pears")

And I take it you are going to fix up the type because I could type anything in and it would say
You have selected "input" Apples.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.