C++ basic inheritance : <p>While learning C++ Classes - Basic Inheritance - my program returned an error saying: "C++ forbids comparison between pointer and integer and C++ forbids comparison between pointer and integer".  Where did I go wrong?  Thanks for your help! :-)  </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

class Pizza
{ public: int slices; char topping[10]; bool pepperoni , cheese ; };

int main() {
// Make your own Pizza!
Pizza pizza;
cout &lt;&lt; "\n You can have Cheese or Pepperoni Pizza!";
cout &lt;&lt; "\n Type [cheese] or [pepperoni] \n";
cin &gt;&gt; pizza.topping[10]; 
if (pizza.topping[10] == "pepperoni") { pizza.pepperoni = true;} 
if (pizza.pepperoni == true) {cout &lt;&lt; "How many slices of pepperoni would you like?";};

if ( pizza.topping[10] == "cheese") { pizza.cheese = true;} 
if (pizza.cheese == true) {cout &lt;&lt; "How many slices of cheese would you like?";};

cin &gt;&gt; pizza.slices; 
if (pizza.slices &gt;= 1) {cout &lt;&lt; "You ordered " &lt;&lt; pizza.slices &lt;&lt; " slices of " &lt;&lt; pizza.topping[10] &lt;&lt; " Pizza!"; }
else if (pizza.slices &lt;= 0) {cout &lt;&lt; "Change your mind?"; }
else { cout &lt;&lt;"Can't Decide? That's Okay.";}
 }
</code></pre>
