#include #include using namespace std; int main() { char* DIG[11][7] = { { "+---+", "| |", "| |", "+ +", "| |", "| |", "+---+"}, { " +", " |", " |", " +", " |", " |", " +"}, { "+---+", " |", " |", "+---+", "| ", "| ", "+---+"}, { "+---+", " |", " |", "+---+", " |", " |", "+---+"}, { "+ +", "| |", "| |", "+---+", " |", " |", " +"}, { "+---+", "| ", "| ", "+---+", " |", " |", "+---+"}, { "+---+", "| ", "| ", "+---+", "| |", "| |", "+---+"}, { "+---+", " |", " |", " +", " |", " |", " +"}, { "+---+", "| |", "| |", "+---+", "| |", "| |", "+---+"}, { "+---+", "| |", "| |", "+---+", " |", " |", "+---+"}, { " ", " ", "o", " ", "o", " ", " "} }; int d1, d2, d3, d4; while(1) { d1 = cin.get(); if (d1 == 'e') break; d1 -= '0'; d2 = cin.get() - '0'; cin.get(); // ':' d3 = cin.get() - '0'; d4 = cin.get() - '0'; cin.get(); // '\n' neuline for(int i=0; i<7; i++) { printf("%s %s %s %s %s\n", DIG[d1][i], DIG[d2][i], DIG[10][i], DIG[d3][i], DIG[d4][i]); } printf("\n\n"); } printf("end\n"); return 0; }