Thumbs Up
2 posts
2 users
2k+ views
2 users
2k+ views
I can only speak for the local hills here in Western PA (Hidden Valley & Seven Springs), but both the Buncher Group & the Nuttings should be highly commended for maintaining their slopes as well as they did given the less than optimum weather conditions this winter. For those fellow nerds out there, I've developed this algorithm (written in "C") to describe this winter:
int precip;
for (int i = 0; i < 20; i++)
{
precip = snow;
/* argument is in days */
Delay(3);
/* This sux */
precip = rain;
}
Hope next year and subsequent years provide more consistent weather (i.e. precip falls only as snow for at least a month straight).
int precip;
for (int i = 0; i < 20; i++)
{
precip = snow;
/* argument is in days */
Delay(3);
/* This sux */
precip = rain;
}
Hope next year and subsequent years provide more consistent weather (i.e. precip falls only as snow for at least a month straight).
Originally Posted By: hockeydave
int precip;
for (int i = 0; i < 20; i++)
{
precip = snow;
/* argument is in days */
Delay(3);
/* This sux */
precip = rain;
}
ok, so let the geek show begin... revised it a bit so it compiles and runs giving some output with a 30 days in between rains.
#include <stdio.h>
#include <unistd.h>
void Delay(int d)
{
sleep(d * 24 * 60 * 60);
}
int main(void)
{
int i, precip, snow, rain;
for( i = 0; i < 20; i++ )
{
printf("snow good\n");
/* argument is in days */
Delay(30);
/* This sux */
printf("rain sux\n");
}
return(0);
}
woohooo... even freaks can be geeks...


