All pastes #464721 Raw Edit

losl

public cpp v1 · immutable
#464721 ·published 2007-04-29 17:49 UTC
rendered paste body
// Stephen Jackson// Section Wilkerson// 4 / 4 / 07// Something about cows#include "farmer.h"using namespace std;//Creates the farmer//Pre: A Name//post: The created farmerfarmer::farmer(string Name){  fName = Name;}//Defeats a cow//Pre: A bovine//post: A dead bovinevoid farmer::eliminateInfidel(bovine &aCow){  aCow.bDead = true;}//Makes a bull a steer//Pre: A cow//post: If they were a bull, they become a steer, otherwise, they are the same.void farmer::castrate(bovine &aCow){  if(aCow.bClass == BOVINE_BULL_CLASS)    aCow.bClass = BOVINE_STEER_CLASS;}