+ -
当前位置:首页 → 问答吧 → vim配置:如何打开一个新窗口,在新窗口中显示某shell命令的执行结果

vim配置:如何打开一个新窗口,在新窗口中显示某shell命令的执行结果

时间:2011-10-01

来源:互联网

代码:
    #include <stdio.h>
    main()
    {
        char thetape[100000];
        int pc;
        pc=0;
        thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            while (thetape[pc]!=0)
           {
            pc+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            pc+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            pc+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            pc+=1;
            thetape[pc]+=1;
            pc-=1;
            pc-=1;
            pc-=1;
            pc-=1;
            thetape[pc]-=1;
           
            }
            pc+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            pc+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            printf("%c",thetape[pc]);
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            pc+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            pc-=1;
            pc-=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            pc+=1;
            printf("%c",thetape[pc]);
            thetape[pc]+=1;
            thetape[pc]+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            printf("%c",thetape[pc]);
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            thetape[pc]-=1;
            printf("%c",thetape[pc]);
            pc+=1;
            thetape[pc]+=1;
            printf("%c",thetape[pc]);
            pc+=1;
            printf("%c",thetape[pc]);
           
    }


这个东西其实是我写的一个BF语言(不知道请去Wikipedia)的编译器编译出来的。。。
你试试用GCC编译,真的能够输出 “Hello World!”噢

作者: libertas   发布时间: 2011-10-01

蛋疼!

作者: ljj_jjl2008   发布时间: 2011-10-01

ljj_jjl2008 写道:
蛋疼!

为毛。。。

作者: libertas   发布时间: 2011-10-01

BF
我想要GF

作者: nmsfan   发布时间: 2011-10-01

nmsfan 写道:
BF
我想要GF

很多人都这样说啊
对于一个好好学习的孩纸(其实是木有妹纸看上的孩纸),不要拿妹纸来毒害我啊~

作者: libertas   发布时间: 2011-10-01

libertas 写道:
nmsfan 写道:
BF
我想要GF

很多人都这样说啊
对于一个好好学习的孩纸(其实是木有妹纸看上的孩纸),不要拿妹纸来毒害我啊~

那你就该浪费卫生纸了

作者: zkwlx   发布时间: 2011-10-01

thetape[pc]++ 不是更优化吗。

作者: cuihao   发布时间: 2011-10-01

cuihao 写道:
:em01 thetape[pc]++ 不是更优化吗。

其实用 += 是Pythoner的习惯啦。。。

作者: libertas   发布时间: 2011-10-01