当前位置:   article > 正文

程序员用c语言写的新年祝福,程序员的新年祝福:Happy New Year

c语言元旦代码

原标题:程序员的新年祝福:Happy New Year

51CTO大本营祝您元旦快乐!

08c0e144d254f2dc08462becfa9aee23.png

本文转载自程序员的那点事(ID:Coder1024Coder1024)

c6b2faf19aefa0b73823540ceb545ea5.png

C:printf("Happy New Year");

C++ :cout<

Objectivec:NSLog(@"Happy New Year!");

QBasic :Print "Happy New Year"

Asp :Response.Write "Happy New Year"

PHP :echo "Happy New Year";

Ruby:puts "Happy New Year!"

Java:alert("Happy New Year")

VB:MsgBox "Happy New Year"

Java:document.write("Happy New Year")

Java:console.log(' Happy New Year');

xml

Delphi:ShowMessage('Happy New Year!');

VB:Msg("Happy New Year!")

VC:MessageBox("Happy New Year!");

shell:echo Happy New Year

perl:print 'Happy New Year'

java:System.out.println("Happy New Year");

LISP:(format t "Happy New Year!~%")

powerBuilder:messagebox("Happy New Year")

C#:System.Console.WriteLine("Happy New Year!")

COBOL:DISPLAY 'Happy New Year!'

Python:print("Happy New Year!")

aswing:JOptionPane.showMessageDialog("happy","Happy New Year!")

Android:Toast.makeText(getApplicationContext(), "Happy New Year",Toast.LENGTH_SHORT).show()

flex:Alert.show("Happy New Year!");

Clojure:(println "Happy New Year")

verilog/systemverilog/e $display("Happy New Year")

as:trace("Happy New Year!");

nasm:

org07c00h

movax,cs

movds,ax

mov es,ax

call DispStr

jmp$

DispStr:

mov ax,BootMessage

movbp,ax

movcx,16

movax,01301h

movbx,000ch

movdl,0

int10h

ret

BootMessage:db"Happy New Year!"

times510-($-$$)db0

dw0xaa55

责任编辑:

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/96363
推荐阅读