Joke Collection Website - Public benefit messages - C language generates a random verification code (a combination of four random letters and numbers), which requires the user to input and gives a prompt of input dislocation with inconsistent length.

C language generates a random verification code (a combination of four random letters and numbers), which requires the user to input and gives a prompt of input dislocation with inconsistent length.

# Contains? & ltbits/stdc++。 h & gt

Use? Namespace? std

Charles? a[233],ST[233];

int? getnum(int? num){

What if? (num & lt26)? return(' a '+num); other

Return(' 0 '+ number-26);

}

int? main(){

srand(time(0));

For what? (int? I = 1; I < = 4; i++)? printf("%c ",a[I]= getnum(rand()% 36)); printf(" \ n ");

scanf("%s ",& ampST);

What if? (strlen(st)! =4)? {printf ("Wrong? Length \ n "); return(0); }

For what? (int? I = 0; I<4; i++)

? What if? (st[i]! =a[i+ 1]){

Printf ("Different? Where is it? %d”,I+ 1);

return(0);

? }

printf(" RIGHT \ n ");

}