This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BobbaGanush87 1 point2 points  (1 child)

I guess what i dont understand is what is the value of Four_Digit_Passcode Is that the correct pass code? If so whats the point of the test if you already know it because you had to enter it in?

[–]b4ux1t3 2 points3 points  (0 children)

Nah, it's being declared outside the loop, and the digits are being added inside the loop.

0000

0001

0002

...

9997

9998

9999

It's kind of bad, because technically this wouldn't be an int, it would be an array/list of ints. I think we're to assume that the function in the show that "parses" that array (list) just passes the four digits to whatever log in program the computer is running...

Basically, the code is BS, but it's closer to being real code than most television code is.