#include #include char pole[7][11][20] = { { "+---+", " +", "+---+", "+---+", "+ +", "+---+", "+---+", "+---+", "+---+", "+---+", " " }, { "| |", " |", " |", " |", "| |", "| ", "| ", " |", "| |", "| |", " " }, { "| |", " |", " |", " |", "| |", "| ", "| ", " |", "| |", "| |", "o" }, { "+ +", " +", "+---+", "+---+", "+---+", "+---+", "+---+", " +", "+---+", "+---+", " " }, { "| |", " |", "| ", " |", " |", " |", "| |", " |", "| |", " |", "o" }, { "| |", " |", "| ", " |", " |", " |", "| |", " |", "| |", " |", " " }, { "+---+", " +", "+---+", "+---+", " +", "+---+", "+---+", " +", "+---+", "+---+", " " } }; int main() { char l[100]; while (1) { gets(l); if (!strcmp(l, "end")) { printf("end\n"); break; } for (int j = 0; j < 7; j++) { for (int i = 0; l[i]; i++) { if (i != 0) printf(" "); if (l[i] == ':') printf(pole[j][10]); else printf(pole[j][l[i] - '0']); } printf("\n"); } printf("\n\n"); } return 0; }