分類: 笑話接力
Hits:1974
回應:1
推薦:0
發信人: RFZNJP.bbs@bbs.mgt.ncu.edu.tw (耶~~~~~~~~考完啦!),
信區: programming
標 題: 大老二搶先整理好板………
發信站: 中大資管龍貓資訊天地 (Fri Jan 18 01:47:07 2002)
─────────────────────────────────
大老二怎麼寫呀!
話說有一天………
有位網友test提出一個這樣的問題:
"大老二要怎麼寫呀...
教我教我..
我是用C
不過C++也行~~ "
==============================================
quto立即回覆:
C版本:
#include
int main()
{
printf("大老二");
return 0;
}
C++版本:
#include
using namespace std;
int main()
{
cout<<"大老二";
return 0;
}
嗯......寫好了.
==============================================
dinocho說:
那我補一個VB.Net的版本
Imports System
NameSpace MyNameSpace
Module Big2
Sub Main()
Console.WriteLine("大老二")
End Sub
End Module
End NameSpace
===============================================
RFZNJP說:(嗚嗚!我才是JAVA版的原作者)
Java版絕不落人後………
public class OldTwo
{
public static void main(String[] args)
{
System.out.println("大老二");
}
}
有誰會用Assembly寫的ㄚ………
=============================================
Acelan說
真的要這樣
segment stack stack
resb 64
stacktop:
segment data
msg: db "大老二!",13,10,"$"
segment text
..start: mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,stacktop
mov dx,msg
mov ah,09h
int 21h
mov al,0
mov ah,4ch
int 21h
請使用 nasm 組譯 http://www.web-sites.co.uk/nasm/
====================================================
cho說:
用 BASICA 最簡潔啦
10 PRINT "大老二"
====================================================
kisaraki說:
更簡潔的版本:
ECHO 大老二
==================================================
kisaraki又說:
DOS Batch File:
大老二
不過它會送你一個 Bad command or file name
=============================================
Lupin說:
那...這樣ㄋ?
C:\copy con 大老二.bat
@echo 大老二
^Z
C:\大老二 [ENTER]
大老二
============================================
Jamezzz說:
python:
#! /usr/bin/python/
print "大老二"
html:
大老二
perl:
#! /usr/bin/perl/ -w
print ("大老二");
================================================
Learner說:
夠了... @@
可以用在 unix 上的...
~$ echo "echo 大老二" > big2; chmod u+x ./big2
==========================================
youngwind說:
BCB
Canvas->TextOut(10,10,"大老二");
or
Edit->Text="大老二";
or
Label->Caption="大老二";
=======================================
cully說
javascript
大老二
========================================
Eigen說:
/*
你們很討人厭ya~~
誰的會比我的大?
用 */
#include
#include
unsigned char font[30]={
0x02,0x00,0x02,0x08,0x3F,0xD8,0x02,0x20,
0x02,0x44,0xFF,0xFE,0x01,0x00,0x06,0x00,
0x0C,0x00,0x17,0xF8,0x24,0x00,0x44,0x00,
0x84,0x00,0x03,0xFC,0x00,0x00};
unsigned char big5[6]={0xa6,0xd1,0xa4,0x47,0xa4,0x6a};/*大老二*/
int getbit(int no){return((char*)font)[no/8]&1<<8-(no%8+1);}
int main()
{
int x,y;
for(y=0;y<15;y++){for(x=0;x<16;x++){
printf("%c%c",getbit(y*16+x)?big5[2]:big5[4],getbit(y*16+x)?big5[3]:big5[5]);
}printf("\n");
for(x=0;x<16;x++){
printf("%c%c",getbit(y*16+x)?big5[2]:big5[4],getbit(y*16+x)?big5[3]:big5[5]);
}printf("\n");}
return 0;
}
==================================================================
Email說
笑死人了..這麼小敢跟我比大...
你的會比我大嗎??
呵呵呵....
==================================================================
alexhs說:
haha笑翻了...我提供一個perl的版本 :)
#!/usr/local/bin/perl
print "大老二\n"
==================================================================
信區: programming
標 題: 大老二搶先整理好板………
發信站: 中大資管龍貓資訊天地 (Fri Jan 18 01:47:07 2002)
─────────────────────────────────
大老二怎麼寫呀!
話說有一天………
有位網友test提出一個這樣的問題:
"大老二要怎麼寫呀...
教我教我..
我是用C
不過C++也行~~ "
==============================================
quto立即回覆:
C版本:
#include
int main()
{
printf("大老二");
return 0;
}
C++版本:
#include
using namespace std;
int main()
{
cout<<"大老二";
return 0;
}
嗯......寫好了.
==============================================
dinocho說:
那我補一個VB.Net的版本
Imports System
NameSpace MyNameSpace
Module Big2
Sub Main()
Console.WriteLine("大老二")
End Sub
End Module
End NameSpace
===============================================
RFZNJP說:(嗚嗚!我才是JAVA版的原作者)
Java版絕不落人後………
public class OldTwo
{
public static void main(String[] args)
{
System.out.println("大老二");
}
}
有誰會用Assembly寫的ㄚ………
=============================================
Acelan說
真的要這樣
segment stack stack
resb 64
stacktop:
segment data
msg: db "大老二!",13,10,"$"
segment text
..start: mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,stacktop
mov dx,msg
mov ah,09h
int 21h
mov al,0
mov ah,4ch
int 21h
請使用 nasm 組譯 http://www.web-sites.co.uk/nasm/
====================================================
cho說:
用 BASICA 最簡潔啦
10 PRINT "大老二"
====================================================
kisaraki說:
更簡潔的版本:
ECHO 大老二
==================================================
kisaraki又說:
DOS Batch File:
大老二
不過它會送你一個 Bad command or file name
=============================================
Lupin說:
那...這樣ㄋ?
C:\copy con 大老二.bat
@echo 大老二
^Z
C:\大老二 [ENTER]
大老二
============================================
Jamezzz說:
python:
#! /usr/bin/python/
print "大老二"
html:
大老二
perl:
#! /usr/bin/perl/ -w
print ("大老二");
================================================
Learner說:
夠了... @@
可以用在 unix 上的...
~$ echo "echo 大老二" > big2; chmod u+x ./big2
==========================================
youngwind說:
BCB
Canvas->TextOut(10,10,"大老二");
or
Edit->Text="大老二";
or
Label->Caption="大老二";
=======================================
cully說
javascript
大老二
========================================
Eigen說:
/*
你們很討人厭ya~~
誰的會比我的大?
用 */
#include
#include
unsigned char font[30]={
0x02,0x00,0x02,0x08,0x3F,0xD8,0x02,0x20,
0x02,0x44,0xFF,0xFE,0x01,0x00,0x06,0x00,
0x0C,0x00,0x17,0xF8,0x24,0x00,0x44,0x00,
0x84,0x00,0x03,0xFC,0x00,0x00};
unsigned char big5[6]={0xa6,0xd1,0xa4,0x47,0xa4,0x6a};/*大老二*/
int getbit(int no){return((char*)font)[no/8]&1<<8-(no%8+1);}
int main()
{
int x,y;
for(y=0;y<15;y++){for(x=0;x<16;x++){
printf("%c%c",getbit(y*16+x)?big5[2]:big5[4],getbit(y*16+x)?big5[3]:big5[5]);
}printf("\n");
for(x=0;x<16;x++){
printf("%c%c",getbit(y*16+x)?big5[2]:big5[4],getbit(y*16+x)?big5[3]:big5[5]);
}printf("\n");}
return 0;
}
==================================================================
Email說
笑死人了..這麼小敢跟我比大...
你的會比我大嗎??
呵呵呵....
``````````````````````````````````````````````````````````````````
``````````````````````````````MM``````````````````````````````````
````````````````````````````MMMMMMMM``````````````````````````````
````````````````````````````MMMMMM````````````````````````````````
```````````````````````````MMMM``````````````````````````````````
````````````````````````````MMMM````````MMMMMM````````````````````
````````````````````````````MMMMMMMMMMMMMMMMMM````````````````````
``````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````````````````
````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````````````````````
````````````MMMMMMMMMMMMMMMMMMMMMMMM``````````````````````````````
``````````````MMMMMMMMMMMMMMMM````````````````````````````````````
``````````````MMMM````````MMMMMM``````````````````````````````````
````````````````````````MMMMMMMM``````````````````````````````````
````````````````````````MMMMMMMMMM````````````````````````````````
````````````````````````MMMMMMMMMMMM``````````````````````````````
``````````````````````MMMMMM````MMMMMMMM``````````````````````````
``````````````````````MMMM````````MMMMMMMM````````````````````````
````````````````````MMMMMM``````````MMMMMMMM``````````````````````
``````````````````MMMMMM``````````````MMMMMMMM````````````````````
````````````````MMMMMM``````````````````MMMMMMMMMM````````````````
````````````MMMMMMMM``````````````````````MMMMMMMMMM``````````````
````MMMMMMMMMMMMMM````````````````````````MMMMMMMMMMMMMM``````````
````MMMMMMMMMMMM``````````````````````````MMMMMMMMMMMMMMMMMM``````
````````````````````````````````````````````````MMMMMMMMMMMMMM````
``````````````````````````````````````````````````````````````````
``````````````````````````MMMMMMMM````````````````````````````````
``````````````````````````MMMMMM``````````````````````````````````
``````````````````````````MMMMMM``````````````MMMM````````````````
``````````````````````````MMMMMMMMMMMMMMMM``MMMMMM````````````````
``````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````````````
``````````````````MMMMMMMMMMMMMMMMMMMM````MMMMMMMM````````````````
````````````````````MMMM``MMMMMM````````MMMMMMMM``````````````````
``````````````````````````MMMMMM``````MMMMMMMM````````````````````
``````````````````````````MMMMMM````MMMMMMMM``````MMMMMM``````````
``````````````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``````````
````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````
``````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````````````MMMMMM````````
``````MMMMMMMMMMMMMM````````MMMMMM````````````````````````````````
````````MM````````````````MMMM````````````````````````````````````
``````````````````````MMMMMMMM````````````````````````````````````
````````````````````MMMMMMMMMM````````MMMM````````````````````````
``````````````````MMMMMMMMMMMM``````MMMMMM````````````````````````
``````````````MMMMMM````MMMMMM``MMMMMMMMMM````````````````````````
````````````MMMMMM``````MMMMMMMMMMMMMM````````MM``````````````````
````````MMMMMMMM````````MMMMMMMMMM````````````MM``````````````````
````MMMMMMMMMM``````````MMMM````````````````MMMM``````````````````
``MMMMMMMM``````````````MMMM````````````````MMMM``````````````````
``MMMM``````````````````MMMMMM``````````````MMMMMM````````````````
``````````````````````````MMMMMM``````````MMMMMMMM````````````````
``````````````````````````MMMMMMMMMMMMMMMMMMMMMMMM````````````````
````````````````````````````MMMMMMMMMMMMMMMMMMMMMM````````````````
``````````````````````````````````````````````````````````````````
``````````````````````````````````MMMMMMMMMM``````````````````````
````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM````````````````````
````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMM``````````````````````
``````````````````MMMMMMMMMMMMMMMMMMMM````````````````````````````
``````````````````MMMMMM````MM````````````````````````````````````
``````````````````````````````````````````````````````````````````
``````````````````````````````````````````````````````MM``````````
````````````````````````````````MMMMMMMMMMMMMMMMMMMMMMMMMM````````
``````````````````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``````
``````MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``````
````MMMMMMMMMMMMMMMMMMMMMMMMMMMM``````````````````MMMMMMMM``````
``````MMMMMM````````````````````````````````````````````MMMM``````
``````MM``````````````````````````````````````````````````````````
``````````````````````````````````````````````````````````````````
==================================================================
alexhs說:
haha笑翻了...我提供一個perl的版本 :)
#!/usr/local/bin/perl
print "大老二\n"
==================================================================
影音多媒體相簿存放沒有上限,請參考 kiss99.net 說明。
[ 回應本篇文章 ]
[ 回應本篇文章 ]