1. #include <stdio.h>
    2. #include<stdlib.h>
    3. #include<iostream>
    4. using namespace std;
    5. void process() {
    6. char num[7][69] = {
    7. {"***** * ***** ***** * * ***** ***** ***** ***** *****"},\
    8. {"* * * * * * * * * * * * * *"},\
    9. {"* * * * * * * * * * * * * *"},\
    10. {"* * * ***** ***** ***** ***** ***** * ***** *****"},\
    11. {"* * * * * * * * * * * * *"},\
    12. {"* * * * * * * * * * * * *"},\
    13. {"***** * ***** ***** * ***** ***** * ***** *****"} };
    14. int i = 0;
    15. int j = 0;
    16. int k = 0;
    17. char str[5] = { 0 };
    18. cin >> str;cout << str;
    19. printf(":\n");
    20. for (i = 0; i < 7; i++) {
    21. for (k = 0; k < strlen(str); k++) { // 对于字符串中的每个数
    22. for (j = (str[k] - '0')*7; j < (str[k] - '0') * 7+ 5; j++) {// 打印对应的数字
    23. printf("%c", num[i][j]);
    24. }
    25. printf(" ");
    26. }
    27. printf("\n");
    28. }
    29. }