[ create a new paste ] login | about

Link: http://codepad.org/ES8hvBvc    [ raw code | output | fork ]

C++, pasted on Nov 1:
#ifndef bunny
#define bunny

#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include "Coordinate.h"
using namespace std;


class Bunny
{
	private:
		int age;
		bool isFemale;
		bool isAlive;
		bool isAdult;
		bool isRadioactive;
		string name;
		string color;
		string GetGenderAsText();
		Coordinates location;
		char bunnyPlaceHolder;
		bool isMarkedRadioactive;

	public:

		Bunny();

		Bunny(string name, bool isFemale, string color, bool isRadioactive);

		string ToString();
		
		string GetName();

		string GetColor();

		string GetRadioactiveAsText();

		bool GetIsFemale();

		bool GetIsAlive();

		bool GetisAdult();

		bool GetisRadioactive();

		bool SetIsAlive();

		int GetAge();

		int GetBunnyRowLocation();

		int GetBunnyColumnLocation();

		int IncrementAge();

		void SetIsAliveFalse();

		void SetIsRadioactiveTrue();

		Coordinates GetLocation();

		void SetLocation(Coordinates);

		char GetBunnyPlaceHolder();

		void SetBunnyPlaceHolder(Bunny);

		void SetIsMarkedRadioactive(bool);

		bool GetIsMarkedRadioactive();

};

enum FurColor {brown, black, white};

#endif


Output:
1
2
3
4
Line 16: error: array: No such file or directory
Line 23: error: Coordinate.h: No such file or directory
Line 24: error: 'Coordinates' does not name a type
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: