当前位置:神舟问>生活百科>helloworld代码怎么写

helloworld代码怎么写

2023-12-01 22:22:06 编辑:join 浏览量:542

helloworld代码怎么写

java:

publicclasshelloworld

{

publi360问答cstaticvoidmain(String[]args)

{

System.out.println("Helloworld!");

}

}python2:

print"Helloworld!"python3:

print("Helloworld!")C/C++:

#include

intmain()

{

printf("Hell式争观来输药伤州持oworld!

")宁织客找裂余;

return0;

厂}Linuxintelasm(由于百度知道不支持汇编语言,因此可读性会差一点):

[sectiondata]

msgdb"Helloworld!义",0ax

lenequ$-msg

[sectiontext]

global_start

_start:

moveax,4

movebx,1

mo鸡谁世况洋房由爱vecx,msg

movedx,len

int0x80

moveax,1

movebx,0

int0x80

LinuxAT&Tasm(由于百度知道不支持汇编语言,因此可读性会差一点):

.data

msg:

.ascii"Helloworld!

"

len=.-msg

.text

.globl_start

_star压顺养更落度t:

movl$4,%eax

movl$1,%ebx

movl$msg,%ec满济战林季经宁积洋重x

movl$len,%edx

int$0x80

movl$1,%eax

m乐吧此升用调孩密建练了ovl$0,%ebx

int$差0x80

php:

标签:helloworld,代码

版权声明:文章由 神舟问 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.shenzhouwen.com/life/225249.html
热门文章