Thumbs Up
2 posts
2 users
665 views
hockeydave
April 7, 2008
Member since 06/30/2004 🔗
772 posts
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).
crunchy
April 7, 2008
Member since 02/22/2007 🔗
596 posts
 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...
DCSki Sponsor: Massanutten Resort

Ski and Tell

Speak truth to powder.

Join the conversation by logging in.

Don't have an account? Create one here.

0.14 seconds