碼農如何以寫代碼的方式祝願親愛的朋友們新年快樂?
年齡不限,國籍不限,語言種類不限,性別不限,星籍不限,大家盡情發揮想像力,看看誰的代碼最優秀!!!最精彩!!!o(∩_∩)o
with hold(u"妹紙").into(bed):
while not too_tired:
yield u"元旦快樂!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
++++++++++[&>+++&>++++&>+++++++&>++++++++++&>+++++++++++&<&<&<&<&<-]&>&>&>++.&>---.&>++..+++++++++.&<&<&<&<++.&>&>&>&>-----------.---------.++++++++++++++++++.&<&<&<&<.&>&>&>&>++.&<++++.----.&>-------.&<&<&<++++.&<.&>&>&>++++++.&>---.&<---.&>++++.&<&<&<&<.&>&>&>--.++++++++++.-------.&>..&<&<&<&<.&>&>&>&>+.&<+++.---.&<&<&<.&>&>+++.&>&>+++.&<&<&<+++++++..&>&>&>---------.&<&<&<&<+.
data:text/plain;base64,SGFwcHkgbmV3IHllYXIh
&2011&>&<2012&>&
socket fd = connect("諾亞方舟伺服器地址「, 2012);
send(fd, "購買兩張船票");
recv(fd, "購票成功,登船時間2012年12月21日,祝您新年快樂!");
close(fd);
碼農的「CodeCards」 用HTML和CSS代碼編寫聖誕卡片
http://cards.codecademy.com/codecards
http://cnbeta.com/articles/219534.htm
happyNewYear = be . happy
main = case isHappy of
False -&> happyNewYear &>&> main
True -&> mapM do_ $ filter like getThings
using System.Windows.Forms;
namespace NewYear
{
static class Program
{
static void Main()
{
MessageBox.Show("Hello World 2012");
}
}
}
{-
這邊想寫代碼入侵這個頁面煙火動畫的...
沒技術只好寫注釋了 - -!
2012 對與每個人都是不凡的一年
希望接下來一年我能更靠近網路本真去觸摸神奇
我爸媽應該正在睡熟吧, 畢竟不是除夕
後面將會花很多時間更好得學編程去了
-}
-- 補一個平庸的
&
&
let year = last $ take 22 [1991..]
"Hi " ++ (show year)
&&
來個比較冷門的語言
.版本 2
.程序集 窗口程序集1
.子程序 __啟動窗口_創建完畢
信息框 (「2012新年快樂!」, 0, 「祝福」)
Android:
public class ThisYear_2011 extends Activity {
private Button makeWish4NextYear;
private String[] wish = {"Happiness", "MoreMoney", "Health", "Safeness" };
private int requestCode = 88888888
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
makeWish4NextYear = (Button)findViewById(R.id.make_wish);
makeWish4NextYear.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Bundle haveAWonderfullNewYear = new Bundle();
haveAWonderfullNewYear.putStringArray("myFamilyAndMyFriendsAndMyLoveAndI", wish);
Intent hopeMyEveryWishCouldBeTrue = new Intent(ThisYear_2011.this, NextYear_2012.class);
hopeMyEveryWishCouldBeTrue.putExtras(haveAWonderfullNewYear);
startActivityForResult(hopeMyEveryWishCouldBeTrue, requestCode);
ThisYear_2011.this.finish();
}
});
}
}
也祝各位新年快樂!
來個彙編的,取自互聯網---
我用的80*25模式
每行160個位元組 0位元組字元位元組 1位元組字元屬性位元組 2位元組字元位元組 ...... 160位元組屬性位元組(這是第一行,要多少行乘 以160)
以下為實列代碼
assume cs:code,ds:data
data segment
strs db "H","a","p","p","y","2","0","1","2"
data ends
code segment
star: ;養成自己設置入口點的好習慣
mov ax,0b800H ;顯示反衝區第0頁段地址為 B800
mov es,ax ;我們用movsb傳送數據 mov ax,data
mov ds,ax
mov di,0a00H ;ES:DI指向MOVSB指令目標指令
mov si,00H ;DS:SI指向MOVSB指令數據來源
mov cx,20 ;我們需要拷貝20位元組數據,要讓 MOVSB執行20次
rep movsb ;進行數據拷貝
mov ax,4c00H
int 21H ;程序結束
code ends
end starshell腳本:
echo happy new year
&
Year year2012 = new Year("2012");
year2012.ishappy=true;
year2012.run();
HAI
CAN HAS STDIO?
VISIBLE "HAPPY NEW YEAR!"
KTHXBYE
Perl的
#############################################$_=";@@@*./[@["(&>@)&<.[]zhihu"^"^#(/|bO_+9".
"{iMI`pYO)}HXXZT";$,+=(++$,);$_.=">$,";`$_`;
javascript:alert("2012新年好!");
居然沒有java版本的我來個
class Happy{
private int yasuiqian;
private Relative relative;
public static final String BESTWISH="新年快樂!";
public static final int NOMONEY=0;
public static void main(String args[]){
yasuiqian=0;
relative=new Relative();
yasuiqian=relative.getYasuiqian();
yasuiqian(yasuiqian);
}
private void yasuiqian(int yasuiqian){
if(yasuiqian&>NOMONEY)
print(BESTWISH);
}
System.out.println(string);
}
}
c++:
happy = new Year(2012);
推薦閱讀: