#include <iostream>
using namespace std;
int main()
{
char neutered, opselect, animal;
const int dogcost = 80, catcost = 60, birdOrReptilecost = 0;
cout << "What kind of animal do you have?\n";
cout << "d for dog, c for cat, b for bird or reptile and o for others.\n\n";
cin >> animal;
cout << "Answer the following questions\n";
cout << "With Y for yes or N for no.\n\n";
cout << "Is your pet neutered? ";
cin >> neutered;
This is how I start but I know that I did something wrong but I cannot figure it out, because thing dont run correctly. I tried to "char d = dog" but it did not work also. What Can I do to make D equal to dog and from that I can compute the price...
MOD EDIT: When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 22 September 2010 - 12:15 PM

New Topic/Question
Reply




MultiQuote







|