22中程式語言的HelloWorld

阿豪聊乾貨發表於2016-04-03

C:printf(“HelloWorld”);

C++ : cout<<“HelloWorld”;

QBasic : Print “HelloWorld”

Asp : Response.Write “HelloWorld”

PHP : echo “HelloWorld”;

JScript: alert(“HelloWorld”)

VBScript:MsgBox “HelloWorld”

Jscript:document.write(“HelloWorld”)

Delphi: ShowMessage(`HelloWorld!`);

VB: Print “HelloWorld!”

VC: MessageBox(“HelloWorld!”);

shell: echo HelloWorld

perl: print `HelloWorld`

java: System.out.println(“HelloWorld”);

powerBuilder:messagebox(”HelloWorld”)

C#:System.Console.WriteLine(“HelloWorld!”)

COBOL:DISPLAY `HelloWorld!

Python:print(“HelloWorld!”)

AS:Alert.show(“HelloWorld!”);

Foxpro: ? [HelloWorld!]

DOS 批處理: echo HelloWorld

易語言:除錯輸出(“HelloWorld!!!”)


相關文章