11 firstCodeDigit[ 0 ] = 0;
12 firstCodeDigit[ 1 ] = 0;
13 firstCodeDigit[ 2 ] = 0;
14 firstCodeDigit[ 3 ] = 0;
15 firstCodeDigit[ 4 ] = 0;
22 firstCodeDigit[ digitNumber ]++;
24 if( 10 <= firstCodeDigit[ digitNumber ] ) {
25 firstCodeDigit[ digitNumber ] = 0;
32 firstCodeDigit[ digitNumber ]--;
34 if( firstCodeDigit[ digitNumber ] < 0 ) {
35 firstCodeDigit[ digitNumber ] = 9;
40 int32_t firstCode = 0;
42 firstCode += firstCodeDigit[ 4 ] * 10000;
43 firstCode += firstCodeDigit[ 3 ] * 1000;
44 firstCode += firstCodeDigit[ 2 ] * 100;
45 firstCode += firstCodeDigit[ 1 ] * 10;
46 firstCode += firstCodeDigit[ 0 ] * 1;