All pastes #464730 Raw Edit

losl

public cpp v1 · immutable
#464730 ·published 2007-04-29 17:54 UTC
rendered paste body
// Stephen Jackson// Section Wilkerson// 4 / 4 / 07// Something about cows#ifndef DISEASE_H#define DISEASE_H#include <string>using namespace std;const int DISEASE_PERCENT_PRECISION = 10000;class disease{  //<< operator Overload for diseases  //Pre: A disease  //Stream output  friend ostream& operator<<(ostream &aStream, const disease &aDisease);    public:    //Makes A disease    //Pre: None    //Post: A disease    disease(string diseaseName, float infectosity, float mortality);    //Makes A Null Disease    //Pre: None    //Post: A Placeholder diease    disease();    //returns infectiveness    //Pre: None    //Post: How Infective it is    float getInfectosity() const;    //returns the Mortality Rate for a disease    //Pre: None    //Post: Float of the mortality rate    float getMortality() const;    //causes various bad things if the cow is infected    //Pre: None    //Post: May cause the bovine to die    bool fatalDisease();  private:    string dName;    float dInfectosity;    float dMortality;    bool dRealDisease;};//<< operator Overload for diseases//Pre: A disease//Stream outputostream& operator<<(ostream &aStream, const disease &aDisease);#endif