首页 > 技术文章 > 可爱的史努比

jackylovewendy 2013-12-26 17:58 原文

#include <iostream>
#include <Windows.h>
using namespace std;
int main()
{
    system("title Dan.Jacky QQ:773091523");
    system("color 0a");
    int snoopy[13][19] =
    {
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 45, 45, 45, 45, 46},
        {0, 0, 0, 0, 0, 0, 95, 46, 39, 95, 95, 0, 0, 0, 0, 96, 46},
        {0, 0, 0, 45, 45, 40, 35, 41, 40, 35, 35, 41, 45, 45, 45, 47, 35, 92},
        {46, 39, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 35, 35, 35, 92},
        {58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 0, 0, 0, 35, 35, 35, 35, 35},
        {0, 96, 45, 46, 46, 95, 95, 46, 45, 39, 0, 95, 46, 45, 92, 35, 35, 35, 47},
        {0, 0, 0, 0, 0, 0, 0, 96, 59, 95, 58},
        {0, 0, 0, 0, 0, 46, 39, 34, 34, 34, 34, 34, 96, 46},
        {0, 0, 0, 0, 47, 44, 0, 0, 74, 79, 69, 0, 0, 44, 92},
        {0, 0, 0, 47, 47, 0, 0, 67, 79, 79, 76, 33, 0, 0, 92, 92},
        {0, 0, 0, 96, 45, 46, 95, 95, 95, 95, 95, 95, 95, 46, 45, 39},
        {0, 0, 0, 95, 95, 95, 96, 46, 0, 124, 0, 46, 39, 95, 95, 95},
        {0, 0, 40, 95, 95, 95, 95, 95, 95, 124, 95, 95, 95, 95, 95, 95, 41}
    };

    for(int i = 0; i < 13; i++)
    {
        for(int j = 0; j < 19; j++)
        {
            cout << (char)snoopy[i][j];
        }
        cout << endl;
    }
    cin.get();

    return 0;
}

 

推荐阅读