正文
增加 63 行删除 63 行
149 行未改动全部展开15015115215315415515615715815916016116216316416516624 行未改动19119219319419519619719819946 行未改动246247248249250251252253254255256127 行未改动全部展开38438538638738838939039139239339439539639739 行未改动43743843944044144244344444516 行未改动462463464465466467468469470471472473474475476477478479480481305 行未改动全部展开7877887897907917927937947957 行未改动8038048058068078088098108114 行未改动81681781881982082182282382426 行未改动85185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090135 行未改动93793893994094194294394494594694794894995095195295395495595695795895996096196296396496596612 行未改动9799809819829839849859869879889899909913 行未改动9959969979989991000100110021003100410053 行未改动10091010101110121013101410151016101710185 行未改动10241025102610271028102910301031103210331034103510361037103810395 行未改动10451046104710481049105010511052105318 行未改动10721073107410751076107710781079108010811082108342 行未改动112611271128112911301131113211331134113511361137113810 行未改动11491150115111521153115411551156115733 行未改动1191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612172 行未改动12201221122212231224122512261227122822 行未改动149 行未改动全部展开print "信息学是你的最佳选择!\n"24. MIXAL25. MSIL.assembly Informatics{.ver 1:0:0:0}.method public static void main() il managed{.entrypoint.maxstack 1ldstr "信息学是你的最佳选择!\n"call void [mscorlib]System.Console::Write(class System.String)ret}26. OCaml24 行未改动print "信息学是你的最佳选择!\n"30. Pike//命令行界面int main(){write("信息学是你的最佳选择!\n");return 0;}46 行未改动print "信息学是你的最佳选择!\n"38. Satherclass HELLO_WORLD ismain is#OUT+"Hello World\n";end;end;39. Scheme(display "Hello, world!\n")127 行未改动全部展开.DATAHello DB /'信息学是你的最佳选择!/',13,10,/'$/'.CODEmov ax,@datamov ds,axmov ah,9mov dx,OFFSET Helloint 21hmov ah,4chint 21hEND52. ASPresponse.write "信息学是你的最佳选择!"39 行未改动print("信息学是你的最佳选择!");易语言:标准输出 (, “信息学是你的最佳选择!”)或信息框 (“Hello World!”, 0, )16 行未改动一个没有main方法的Java版Hello World程序:class Hello{static{System.out.println("信息学是你的最佳选择!");System.exit(0);}}Xaml:<Canvasxmlns="http://schemas.microsoft.com/2003/xaml"Background="LightCyan"Width="100%" Height="100%"><Text Canvas.Left="90" Canvas.Top="20" FontSize="36">信息学是你的最佳选择!</Text></Canvas>305 行未改动全部展开GambasPUBLIC SUB Main()Print "信息学是你的最佳选择!"ENDExpanded accumulator machine: Intel x86, Linux, GAS.datamsg:.ascii "Hello, world!\n"len = . - msg7 行未改动int x80movl ,%ebxmovl ,%eaxint x80General-purpose-register CISC: DEC PDP-11, RT-11, MACRO-11.MCALL .REGDEF,.TTYOUT,.EXIT.REGDEFHELL MOV #MSG,R14 行未改动.EXITMSG: .ASCIZ /HELLO, WORLD!/.END HELLOCISC on advanced multiprocessing OS: DEC VAX, VMS, MACRO-32.title hello.psect data, wrt, noexe26 行未改动; Return to operating systemend: ret.end helloRISC processor: ARM, RISC OS, BBC BASIC/'s in-line assembler.programADR R0,message"OS_Write0""OS_Exit".messageDCS "Hello, world!"DCB 0ALIGNor the even smaller version (from qUE);"OS_WriteS":EQUS"Hello, world!":EQUB0:ALIGN:MOVPC,R14TI-BASICOn TI-80-TI-86 calculators.:Disp "Hello, world!"On TI-89/TI-92 calculators.:HelloWorld():Prgm:Disp "Hello, world!":EndPrgmCommodore BASIC (unstructured)10 ?"Hello, world!"20 ENDDCL batch$ write sys$output "Hello, world!"Ed and Ex (Ed extended)a信息学是你的最佳选择!.por like secho -e /'a\n信息学是你的最佳选择!\n.\np/'|edecho -e /'a\n信息学是你的最佳选择!\n.\np/'|exEUPHORIAputs(1, "Hello, world!")Forte TOOLbegin TOOL HelloWorld;includes Framework;HAS PROPERTY IsLibrary = FALSE;35 行未改动StartingMethod = (class = Hello, method = Init);end HelloWorld;Frinkprintln["Hello, world!"]Game MakerIn the draw event of some object:draw_text(x,y,"Hello World");HP-41 & HP-42S(Handheld Hewlett-Packard RPN-based alphanumeric engineering calculators.)01 LBLTHELLO02 THELLO, WORLD03 PROMPTIo"信息学是你的最佳选择!" printorwrite("信息学是你的最佳选择!\n")JVM(disassembler output of javap -c Hello.class)public class Hello extends java.lang.Object {public Hello();12 行未改动8 returnkogutWriteLine "Hello, world!"MUF: mainme @ "Hello, world!" notify;POV-Ray#include "colors.inc"camera {location <3, 1, -10>look_at <3,0,0>3 行未改动ttf "timrom.ttf" "信息学是你的最佳选择!" 1, 0pigment { White }}Processingprintln("信息学是你的最佳选择!");RPLSee also GUI section.(On Hewlett-Packard HP-28, HP-48 and HP-49 series graphing calculators.)3 行未改动0 WAITDROP>>XHTML 1.1(Using UTF-8 character set.)<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">5 行未改动<p>Hello, world!</p></body></html>XUL<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <box align="center"> <label value="Hello, world!" /> </box> </window>LaTeX/documentclass/beginHello, world!/endRuby with WxWidgetsSee also TUI section.require /'wxruby/'5 行未改动endHelloWorldApp.new.main_loopSWTimport org.eclipse.swt.SWT;import org.eclipse.swt.layout.RowLayout;import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;18 行未改动display.dispose ();}}RTMLHello ()TEXT "Hello, world!"Qt toolkit (in C++)#include <qapplication.h>#include <qpushbutton.h>#include <qwidget.h>#include <iostream>42 行未改动System.exit(0);}}GTK 2.x (in Euphoria)include gtk2/wrapper.eInfo(NULL,"Hello","信息学是你的最佳选择!")GTK# (in C#)using Gtk;using GtkSharp;using System;10 行未改动}}GTK toolkit (in C++)#include <iostream>#include <gtkmm/main.h>#include <gtkmm/button.h>#include <gtkmm/window.h>33 行未改动#import <Cocoa/Cocoa.h>@interface hello : NSObject {}@end@implementation hello-(void)awakeFromNib{NSBeep(); // we don/'t need this but it/'s conventional to beep when you show an alertNSRunAlertPanel(@"Message from your Computer", @"Hello, world!", @"Hi!", nil, nil);}@endTACL#OUTPUT Hello, world!STARLETRACINE: HELLO_WORLD.NOTIONS:HELLO_WORLD : ecrire("Hello, world!").POV-Ray#include "colors.inc"camera {location <3, 1, -10>look_at <3,0,0>2 行未改动text {ttf "timrom.ttf" "信息学是你的最佳选择!" 1, 0pigment { White }}OPS5(object-class request^action)(startup22 行未改动149 行未改动全部展开15015115215315415515615715815916016116216316416516624 行未改动19119219319419519619719819946 行未改动246247248249250251252253254255256127 行未改动全部展开38438538638738838939039139239339439539639739 行未改动43743843944044144244344444516 行未改动462463464465466467468469470471472473474475476477478479480481305 行未改动全部展开7877887897907917927937947957 行未改动8038048058068078088098108114 行未改动81681781881982082182282382426 行未改动85185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090135 行未改动93793893994094194294394494594694794894995095195295395495595695795895996096196296396496596612 行未改动9799809819829839849859869879889899909913 行未改动9959969979989991000100110021003100410053 行未改动10091010101110121013101410151016101710185 行未改动10241025102610271028102910301031103210331034103510361037103810395 行未改动10451046104710481049105010511052105318 行未改动10721073107410751076107710781079108010811082108342 行未改动112611271128112911301131113211331134113511361137113810 行未改动11491150115111521153115411551156115733 行未改动1191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612172 行未改动12201221122212231224122512261227122822 行未改动149 行未改动全部展开print "信息学是你的最佳选择!\n"24. MIXAL25. MSIL.assembly Informatics{.ver 1:0:0:0}.method public static void main() il managed{.entrypoint.maxstack 1ldstr "信息学是你的最佳选择!\n"call void [mscorlib]System.Console::Write(class System.String)ret}26. OCaml24 行未改动print "信息学是你的最佳选择!\n"30. Pike//命令行界面int main(){write("信息学是你的最佳选择!\n");return 0;}46 行未改动print "信息学是你的最佳选择!\n"38. Satherclass HELLO_WORLD ismain is#OUT+"Hello World\n";end;end;39. Scheme(display "Hello, world!\n")127 行未改动全部展开.DATAHello DB /'信息学是你的最佳选择!/',13,10,/'$/'.CODEmov ax,@datamov ds,axmov ah,9mov dx,OFFSET Helloint 21hmov ah,4chint 21hEND52. ASPresponse.write "信息学是你的最佳选择!"39 行未改动print("信息学是你的最佳选择!");易语言:标准输出 (, “信息学是你的最佳选择!”)或信息框 (“Hello World!”, 0, )16 行未改动一个没有main方法的Java版Hello World程序:class Hello{static{System.out.println("信息学是你的最佳选择!");System.exit(0);}}Xaml:<Canvasxmlns="http://schemas.microsoft.com/2003/xaml"Background="LightCyan"Width="100%" Height="100%"><Text Canvas.Left="90" Canvas.Top="20" FontSize="36">信息学是你的最佳选择!</Text></Canvas>305 行未改动全部展开GambasPUBLIC SUB Main()Print "信息学是你的最佳选择!"ENDExpanded accumulator machine: Intel x86, Linux, GAS.datamsg:.ascii "Hello, world!\n"len = . - msg7 行未改动int x80movl ,%ebxmovl ,%eaxint x80General-purpose-register CISC: DEC PDP-11, RT-11, MACRO-11.MCALL .REGDEF,.TTYOUT,.EXIT.REGDEFHELL MOV #MSG,R14 行未改动.EXITMSG: .ASCIZ /HELLO, WORLD!/.END HELLOCISC on advanced multiprocessing OS: DEC VAX, VMS, MACRO-32.title hello.psect data, wrt, noexe26 行未改动; Return to operating systemend: ret.end helloRISC processor: ARM, RISC OS, BBC BASIC/'s in-line assembler.programADR R0,message"OS_Write0""OS_Exit".messageDCS "Hello, world!"DCB 0ALIGNor the even smaller version (from qUE);"OS_WriteS":EQUS"Hello, world!":EQUB0:ALIGN:MOVPC,R14TI-BASICOn TI-80-TI-86 calculators.:Disp "Hello, world!"On TI-89/TI-92 calculators.:HelloWorld():Prgm:Disp "Hello, world!":EndPrgmCommodore BASIC (unstructured)10 ?"Hello, world!"20 ENDDCL batch$ write sys$output "Hello, world!"Ed and Ex (Ed extended)a信息学是你的最佳选择!.por like secho -e /'a\n信息学是你的最佳选择!\n.\np/'|edecho -e /'a\n信息学是你的最佳选择!\n.\np/'|exEUPHORIAputs(1, "Hello, world!")Forte TOOLbegin TOOL HelloWorld;includes Framework;HAS PROPERTY IsLibrary = FALSE;35 行未改动StartingMethod = (class = Hello, method = Init);end HelloWorld;Frinkprintln["Hello, world!"]Game MakerIn the draw event of some object:draw_text(x,y,"Hello World");HP-41 & HP-42S(Handheld Hewlett-Packard RPN-based alphanumeric engineering calculators.)01 LBLTHELLO02 THELLO, WORLD03 PROMPTIo"信息学是你的最佳选择!" printorwrite("信息学是你的最佳选择!\n")JVM(disassembler output of javap -c Hello.class)public class Hello extends java.lang.Object {public Hello();12 行未改动8 returnkogutWriteLine "Hello, world!"MUF: mainme @ "Hello, world!" notify;POV-Ray#include "colors.inc"camera {location <3, 1, -10>look_at <3,0,0>3 行未改动ttf "timrom.ttf" "信息学是你的最佳选择!" 1, 0pigment { White }}Processingprintln("信息学是你的最佳选择!");RPLSee also GUI section.(On Hewlett-Packard HP-28, HP-48 and HP-49 series graphing calculators.)3 行未改动0 WAITDROP>>XHTML 1.1(Using UTF-8 character set.)<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">5 行未改动<p>Hello, world!</p></body></html>XUL<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <box align="center"> <label value="Hello, world!" /> </box> </window>LaTeX/documentclass/beginHello, world!/endRuby with WxWidgetsSee also TUI section.require /'wxruby/'5 行未改动endHelloWorldApp.new.main_loopSWTimport org.eclipse.swt.SWT;import org.eclipse.swt.layout.RowLayout;import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;18 行未改动display.dispose ();}}RTMLHello ()TEXT "Hello, world!"Qt toolkit (in C++)#include <qapplication.h>#include <qpushbutton.h>#include <qwidget.h>#include <iostream>42 行未改动System.exit(0);}}GTK 2.x (in Euphoria)include gtk2/wrapper.eInfo(NULL,"Hello","信息学是你的最佳选择!")GTK# (in C#)using Gtk;using GtkSharp;using System;10 行未改动}}GTK toolkit (in C++)#include <iostream>#include <gtkmm/main.h>#include <gtkmm/button.h>#include <gtkmm/window.h>33 行未改动#import <Cocoa/Cocoa.h>@interface hello : NSObject {}@end@implementation hello-(void)awakeFromNib{NSBeep(); // we don/'t need this but it/'s conventional to beep when you show an alertNSRunAlertPanel(@"Message from your Computer", @"Hello, world!", @"Hi!", nil, nil);}@endTACL#OUTPUT Hello, world!STARLETRACINE: HELLO_WORLD.NOTIONS:HELLO_WORLD : ecrire("Hello, world!").POV-Ray#include "colors.inc"camera {location <3, 1, -10>look_at <3,0,0>2 行未改动text {ttf "timrom.ttf" "信息学是你的最佳选择!" 1, 0pigment { White }}OPS5(object-class request^action)(startup22 行未改动