![Challenge Entry: Photoshop an Ostrich [challenge entry]](/images/board_posticon_c.gif)

...have an E-Moo instead
From the Photoshop an Ostrich challenge. See all 585 entries (closed)
( , Sun 10 Nov 2002, 21:28, archived)

four stomachs of pure grass processing power!
( ,
Sun 10 Nov 2002, 21:33,
archived)

// Visual C++ cow humor
// this program gets grass input, and outputs
// the used grass to an intestines file. I was
// going to include a regurgitation function
// in case of over eating, but i got lazy...
#include <fstream>
#include <iostream>
#define fullStom = 5; //in pounds.
using namespace std;
int EatGrass()
int main()
{
int numOfStoms = 4; // # of stomachs
int stomCnt = 0; //count stomachs.
ofstream outFile1("intestines.dat"); //declares digestion
for (stomCnt = 0; stomCnt < numOfStoms; stomCnt++) //fill each stomach
outFile1 << EatGrass(); //eat grass, send to intestines, from each stomach
return 0;
}
int EatGrass() //begin grass eating
{
int grassEaten = 0; //total grass eaten
int grass; // the grass (duh)
ifstream inFile1 ("grass.dat"); //declare eating process.
while (grassEaten < fullStom) //until somach is full....
{
inFile1 >> grass; //eat grass
grassEaten += grass; //add grass to total
}
return grassEaten; //send back to intestines
}
( ,
Mon 11 Nov 2002, 18:18,
archived)
// this program gets grass input, and outputs
// the used grass to an intestines file. I was
// going to include a regurgitation function
// in case of over eating, but i got lazy...
#include <fstream>
#include <iostream>
#define fullStom = 5; //in pounds.
using namespace std;
int EatGrass()
int main()
{
int numOfStoms = 4; // # of stomachs
int stomCnt = 0; //count stomachs.
ofstream outFile1("intestines.dat"); //declares digestion
for (stomCnt = 0; stomCnt < numOfStoms; stomCnt++) //fill each stomach
outFile1 << EatGrass(); //eat grass, send to intestines, from each stomach
return 0;
}
int EatGrass() //begin grass eating
{
int grassEaten = 0; //total grass eaten
int grass; // the grass (duh)
ifstream inFile1 ("grass.dat"); //declare eating process.
while (grassEaten < fullStom) //until somach is full....
{
inFile1 >> grass; //eat grass
grassEaten += grass; //add grass to total
}
return grassEaten; //send back to intestines
}

...and all that...(ps. edinb3tan 30th nov - u going my hairy friend?)
( ,
Sun 10 Nov 2002, 21:37,
archived)

I will try and grow more hair for the occassion...
( ,
Sun 10 Nov 2002, 21:41,
archived)