編程helloworld代碼 helloworld指令怎么寫?
helloworld指令怎么寫?java:公共類helloworld{公共靜態(tài)void main(String[]args){系統(tǒng)輸出打?。ā澳愫茫澜?!“)}}蟒蛇2:打印”你好,世界!“蟒蛇3:打
helloworld指令怎么寫?
java:
公共類helloworld{公共靜態(tài)void main(String[]args){系統(tǒng)輸出打?。ā澳愫?,世界!“)}}
蟒蛇2:
打印”你好,世界!“
蟒蛇3:
打?。ā蹦愫?,世界!“)
C/C:
#include<stdio.h>int main(){printf(”你好,世界!n”)return 0}
Linux英特爾ASM(知道匯編語言不受支持,可讀性差):[section data]MSG DB“你好!“,0axlen eq$-MSG[section text]global uux start ux開始:mov eax,4 mov ebx,1 mov ECX,MSG mov EDX,len int 0x80 mov eax,1 mov ebx,0 int 0x80 Linux at&;amp;ASM(知道不支持匯編語言,可讀性將很差):”。數(shù)據(jù)消息:。ASCII “你好,世界!n“l(fā)en=-消息文本全局_開始start:movl$4,x movl$1,x movl$msg,x movl$len,x int$0x80 movl$1,x movl$0,x int$0x80php:
<?“你好,世界!"?&燃?xì)廨啓C(jī)