int main()
{
	Dlist stack;
	char name[120];
	char food[120];
	bool eating = true;
	bool grass = false;

	cout << "Hi, what is your doggie's name \n";
	cin.getline(name, 119);
	while (eating)
	{
		// eat
		while (!grass)
		{
			cout << "What does " << name << " eat? \n";
			cin.getline(food, 119);
			if (!strcmp(food, "grass"))
			{
				cout << "Oh, no, it looks like " << name <<" is getting sick! Ick...\n";
				break;
			}
			else if (!strcmp(food, "dog food"))
			{
				eating = false;
				break;
			}
			stack.insertBack(food);
		}
		// barf
		while (!stack.empty() && eating)
		{
			cout << name << " barfs up " << stack.removeBack() << endl;
			if (stack.empty())
				cout << "It looks like " << name << " is feeling better now...\n";
		}
	}
	cout << "Ugh! " << name << " is insulted and walks away in a huff!!!\n";
	
    system("Pause");
	return 0;
}