| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 403 人关注过本帖
标题:有没有有趣的代码啊??
只看楼主 加入收藏
jonny1
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-1-6
结帖率:0
收藏
已结贴  问题点数:20 回复次数:4 
有没有有趣的代码啊??
比如整人,讨人欢喜,搞笑,求爱等等
搜索更多相关主题的帖子: 搞笑 
2013-01-06 00:27
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:10 
只有想不到的 没有做不到的

DO IT YOURSELF !
2013-01-06 06:28
Artless
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:贵宾
威 望:103
帖 子:4211
专家分:28888
注 册:2009-4-8
收藏
得分:10 

无知
2013-01-06 14:48
计科1102
Rank: 1
等 级:新手上路
帖 子:56
专家分:9
注 册:2013-4-26
收藏
得分:0 
#include<iostream.h>
#include<windows.h>
#include<stdio.h>
#define stoptimeshort  40
#define stoptimelong   100
void main()
{
    //////////////////
    char ch[10];
    int f[9][36]={  0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,
                    0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,
                    0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0

                 };

    int s[9][21]={  0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,
                    0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,
                    1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,
                    1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,
                    0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,
                    0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,
                    0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,
                    0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,
                    0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,
                 };
    int t[9][22]={  0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,
                    0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,
                    1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,
                    1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,
                    0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,
                    0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,
                    0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,
                    0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,
                    0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,

                 };
    system ( "title I Love You" );

    //////////////////
    printf ( "%s","        " );
    Sleep ( stoptimelong );
    printf ( "%s","其" );
    Sleep ( stoptimeshort );
    printf ( "%s","实\n" );
    ////////////////////////////////
    printf ( "%s","        " );
    system ( "color 72" );
    Sleep ( stoptimelong );
    printf ( "%s","有" );
    Sleep ( stoptimeshort );
    printf ( "%s","一" );
    Sleep ( stoptimeshort );
    printf ( "%s","句" );
    Sleep ( stoptimeshort );
    printf ( "%s","话\n" );
    ///////////////////////////
    printf ( "%s","        " );
    system ( "color 79" );
    Sleep ( stoptimelong );
    printf ( "%s","一" );
    Sleep ( stoptimeshort );
    printf ( "%s","直" );
    Sleep ( stoptimeshort );
    printf ( "%s","藏" );
    Sleep ( stoptimeshort );
    printf ( "%s","在" );
    Sleep ( stoptimeshort );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","心" );
    Sleep ( stoptimeshort );
    printf ( "%s","里\n" );
    /////////////////////////////
    printf ( "%s","        " );
    system ( "color 7c" );
    Sleep ( stoptimelong );
    printf ( "%s","可" );
    Sleep ( stoptimeshort );
    printf ( "%s","是\n" );
    ///////////////////////////////
    printf ( "%s","        " );
    system ( "color 7d" );
    Sleep ( stoptimelong );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","没" );
    Sleep ( stoptimeshort );
    printf ( "%s","有" );
    Sleep ( stoptimeshort );
    printf ( "%s","勇" );
    Sleep ( stoptimeshort );
    printf ( "%s","气" );
    Sleep ( stoptimeshort );
    printf ( "%s","对" );
    Sleep ( stoptimeshort );
    printf ( "%s","你" );
    Sleep ( stoptimeshort );
    printf ( "%s","说\n" );
    ///////////////////////////////
    printf ( "%s","        " );
    system ( "color 7e" );
    Sleep ( stoptimelong );
    printf ( "%s","今" );
    Sleep ( stoptimeshort );
    printf ( "%s","天\n" );
    //////////////////////////////
    printf ( "%s","        " );
    system ( "color 7a" );
    Sleep ( stoptimelong );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","终" );
    Sleep ( stoptimeshort );
    printf ( "%s","于" );
    Sleep ( stoptimeshort );
    printf ( "%s","鼓" );
    Sleep ( stoptimeshort );
    printf ( "%s","起" );
    Sleep ( stoptimeshort );
    printf ( "%s","勇" );
    Sleep ( stoptimeshort );
    printf ( "%s","气\n" );
    ///////////////////////////////
    printf ( "%s","        " );
    system ( "color 7b" );
    Sleep ( stoptimelong );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","要" );
    Sleep ( stoptimeshort );
    printf ( "%s","对" );
    Sleep ( stoptimeshort );
    printf ( "%s","你" );
    Sleep ( stoptimeshort );
    printf ( "%s","说:\n" );
    ///////////////////////////////
    printf ( "%s","        " );
    system ( "color 79" );
    Sleep ( stoptimelong );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","…\n" );
    /////////////////////////////////
    printf ( "%s","        " );
    system ( "color 72" );
    Sleep ( stoptimelong );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","…" );
    Sleep ( stoptimeshort );
    printf ( "%s","…\n" );
    //////////////////////////////////
    Sleep ( stoptimelong );
    system ( "color fc" );
    for ( int i=0; i<9; i++ )
    {

        cout<<"        ";
        for ( int j=0; j<36; j++ )
        {
            if ( f[i][j]==0 )
                cout<<" ";
           else
               cout<<"*";

        }
        cout<<endl;
        Sleep ( 100 );

    }
    /////////////////////////////////////
line:
    printf ( "%s","        " );
    Sleep ( stoptimelong );
    printf ( "%s","你" );
    Sleep ( stoptimeshort );
    printf ( "%s","愿" );
    Sleep ( stoptimeshort );
    printf ( "%s","意" );
    Sleep ( stoptimeshort );
    printf ( "%s","接" );
    Sleep ( stoptimeshort );
    printf ( "%s","受" );
    Sleep ( stoptimeshort );
    printf ( "%s","我" );
    Sleep ( stoptimeshort );
    printf ( "%s","吗" );
    Sleep ( stoptimeshort );
    printf ( "%s","?(Y/N)" );
    ////////////////////////////////////
    cout<<endl;
    cout<<"        ";
    cin>>ch;
    Sleep ( stoptimelong );
    if ( ch[0]=='y'||ch[0]=='Y' )

    {
        system ( "color fc" );
        for ( int i=0; i<9; i++ )
        {
            cout<<"        ";
            for ( int j=0; j<21; j++ )
            {
                if ( s[i][j]==0 )
                    cout<<" ";
                else
                    cout<<"*";

            }
            cout<<endl;
            Sleep ( 100 );

        }
        Sleep ( 3000 );
    }
    else

    {
        if ( ch[0]=='n'||ch[0]=='N' )

        {
            system ( "color 0f" );
            for ( int i=0; i<9; i++ )
            {
                cout<<"        ";
                for ( int j=0; j<22; j++ )
                {
                    if ( t[i][j]==0 )
                        cout<<" ";
                    else
                        cout<<"*";
                }
                cout<<endl;
                Sleep ( 100 );
            }
            printf ( "%s","        " );
            Sleep ( stoptimelong );
            printf ( "%s","心" );
            Sleep ( stoptimeshort );
            printf ( "%s","碎" );
            Sleep ( stoptimeshort );
            printf ( "%s","了" );
            Sleep ( stoptimeshort );
            printf ( "%s","……\n" );
        }
        else
            goto line;

    }
    system ( "color 0f" );
    system ( "pause" );

}
祝你早日找到你心中的她
2013-04-26 21:15
shihulong
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2012-11-6
收藏
得分:0 
电子病历寻求合作
电子病历寻求合作

PB+SQLServer 结构化电子病历,2甲 3甲医院在用,适合中小医院,成本低,可以项目合作!
QQ:992672993
2013-06-14 09:00
快速回复:有没有有趣的代码啊??
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020591 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved