Yo NS, Check out my first program. Find out what your DIN should be.

BigJew

Active member
http://drop.io/tr0v8lo/asset/din-calculator-exe

I've been screwing around with C++ lately and learning how to program. For my first program I made a little DIN calculator. I still don't really know how to program but this should work. This is exactly the same as using the chart below.

If you have a few seconds you can download it from the sight above, just click download under the Din Calculator side. It's not pretty, but it works... I think. Compare it to the chart below and tell if it works or not.

Thanks

SalomonDinChart0708_sm.jpg
 
Ooops, I forgot the instructions for using the chart.

Step 1

Find the Release Code (letter A through P) which corresponds to the skier's weight, as well as the Release Code which corresponds to the skier's height. If they are not the same, choose the one that is closer to the top of the chart. For example if the skier's weight is 175 lbs. (code L) and the height is 5'7" (code K), choose code K as the correct line of the chart to be reading.

Step 2

Make the adjustments for skier type and age.

The selecton from Step 1 is for an "1" type skier. If the skier is "2" move down the chart one code. If the skier type is "3" move down the chart two codes. If the skier is age 9 or under, or age 50 or over, move up the chart one code.

Note and record the final Release Code letter for the skier.

Step 3

Reading on the corrected release code line from Step 2, find the column with the skier's boot length.

Within the box which corresponds to the skier's Release Code and his or her boot length is a number. This is to be used as the DIN setting for the toe and heel bindings.



 
what thats sick! it crashed when i typed i dont know for my boot soul lengh in mm. Im just learning how to do shit like this haha im a real fucking noob though. check out my ballin website in my sig dawg
 
Is that according to the chart or what you actually ski at?

It puts me at an 8 and I ride at 13.

If it's wrong with the chart could you give me your BSL, Weight, and Skier level?

It's a pain in the ass to check all 96 different possible combinations.
 
haha C++ was such a bitch when I tried it. I was a huge nerd from 4th to 7th grade, my friends and I made video games on the elementary school comps and programmed PONG using basic it was hillarious.
 
whoah cut off the post. I was going to say that it didn't really work for me, it said I should be a 6. Since I pop out of my dins at 8 and I'm something like 2-3% body fat...125 lbs, 5'7"...seems like I should be a bit higher. You should figure out how to adjust it for different styles of skiing, like if you're a park skier, big mountain skier (crank dat shit up), or just a rec skier.

Interesting stuff though.
 
holy shit. ive got 10% body fat and im still skinny as hell. lolz go eat some mickey D's. hahaha

haha i actually had my body fat measured this time last year and ive gained 3% body fat in one year... blah.

someone can correct me if i am wrong but i swear there is a difference between my FKS's and old POS sally's in terms of retention. i have those things a full 2 higher just to stay attached to my skis...
 
I don't want to change it from the chart at all because then I'm probably liable for breaking your leg.

And for those of you who want to learn programming and make simple programs it's really not hard. I used the tutorial on learncpp.com and I'm only on the second page and I made that program.
 
i highly doubt theyd go after individual people, unless you were downloading a SHITLOAD.

and they are appealing.
 
You should get yourself on a quality private torrent site son. Nobody on TPB seeds so unless you like the nostalgic feeling of downloading at 56k speeds get someone to hook you up with an invite for something a bit more... exclusive. Or at least get into demonoid.
 
its kind of backwards to be like, "it says im a 6. I should be an 8." Good for you, but If I'm a tech and your DIN calculates to 6 I SHOULD set your bindings at 6 so you don't sue my ass.
 
#include

using namespace std;

int main()

{ cout weight;

cin.ignore ();

if (weight47){x=x+1;}

if (weight>56){x=x+1;}

if (weight>66){x=x+1;}

if (weight>78){x=x+1;}

if (weight>91){x=x+1;}

if (weight>107){x=x+1;}

if (weight>125){x=x+1;}

if (weight>147){x=x+1;}

if (weight>174){x=x+1;}

if (weight>209){x=x+1;}

if (weight>210){x=x+1;}

cout > bsl;

if (bsl>250){y=y+1;}

if (bsl>270){y=y+1;}

if (bsl>290){y=y+1;}

if (bsl>310){y=y+1;}

if (bsl>330){y=y+1;}

cout >skierlevel;

if (skierlevel>3){cout
 
worked for both me and my girlfriend chart wise. the output was the same as her skis actually are but i ride mine higher then the chart says
 
i like it!! tells me what i should be according to the chart .... i dont ride at that...but the program seems to work. good job!
 
13s pushing it dude unless youre like 250lbs... my friend tore his ACL just skiing around, caught an edge and his ski didnt come off... his dins were on 13 and hes not a small guy.
 
Wow! That's a lot of code. Nice job for a first program. As you learn more, try cleaning up the logic in your old programs. The first time you do it will be tough, but it's all about learning to think a different way.

For instance, this block of code is a lot of if statements. The hardcoded weights have no patterns (e.g. they don't increment equally), but your x=x+1 is a consistent pattern. What you wrote works, but can be shortened.

if (weight>29){x=x+1;}

if (weight>38){x=x+1;}

if (weight>47){x=x+1;}

if (weight>56){x=x+1;}

if (weight>66){x=x+1;}

if (weight>78){x=x+1;}

if (weight>91){x=x+1;}

if (weight>107){x=x+1;}

if (weight>125){x=x+1;}

if (weight>147){x=x+1;}

if (weight>174){x=x+1;}

if (weight>209){x=x+1;}

if (weight>210){x=x+1;}

Shortened:

// initialize this at the top

int length = 13;

int weights[length] = { 29, 38, 47, 56, 66, 78, 91, 107, 125, 147, 174, 209, 210 };

// Instead of the if statements above

for (int i = 0; i < length; i++)

if (weights[x] >= weight)

break;

x = i;

If you can figure the above out, you're on a really good path.
 
right but thevye ben hit with swedes not amricans. the swedsh govrenmnt is nothin like the candain goverment, the swede govrment has taken to making shit up and pssing it as law withn two months. besids, on the same grnds pitratebay was sued on they could sue google as well,
 
Back
Top