What kind of playing card wants to wash what kind of playing card is washed?
Use OUT or in mode by calculating a binary decision
Haha
// inf3.cpp: defines the entry point for the console application.//
#include "stdafx.h" #include "stdio.h"
INT Main (int Argc, char * argv []) {INT K [2] [26], R, C, Bin [8], N, M, G [52], J; For (c = 0; c < 26; C ) {k [0] [C] = C; K [1] [C] = C 26;} Printf ("Bitte Geben Sie N Ein! / N); Scanf ("% D ", & n ); For (m = 0; m ) bin [m] = 0; for (m = 7; m> = 0; m -) {bin [m] = n% 2; n = N / 2; if (n == 1) {bin [m-1] = 1; Break;}} for (m = 0; M <8; M ) {j = 0; Printf ("% d", bin [m ]); Switch (bin [m]) {case 0: for (c = 0; C <26; C ) {for (r = 0; r <2; R ) {g [j] = k [r] [ C]; J ;}} Break; Case 1: for (C = 0; C <26; C ) {for (r = 1; r> = 0; r -) {g [j] = k [r] [c]; j ;}} Break;} for (c = 0; c <26; c ) {k [0] [c] = g [c]; k [1] [c] = g [c 26 ];}} Printf ("/ n"); for (r = 0; r <2; R ) {for (c = 0; c <26; C ) {printf ("% 2d", k [r] [ c]);} printf ("/ n");} return 0;}