其他分享
首页 > 其他分享> > hello world

hello world

作者:互联网

1. hello world的不同语言的表示方法


C:

	#include "stdio.h"
	int main()
	{
		printf("hello world");
	}

C++:

	#include <iostream>
	using namespace std;
    int main()
	{
		cout<<"hello world"<<endl;
	}

python:

 	print(r"hello world)

汇编版本:
assume cs:code ds:data seg
data segment:
db (256) ?
data segment ends
code segment
START: MOV AX,RA_X
MOV CS,DS
MOV AX,DB
MOV DS,AX
SUB CS,AX
XOR CS:IP,DS
CODE SEGMENT ENDS
MOV AX,4CC00H
INT 32H
CODE SEGMENT ENDS
END START

2引用

原来是这样
还是很有意思的
还是很好玩

snowland

4

© 2004 Foo Corporation

This is [taobao][id]inline link.

This is an example inline link.
[id]: https://www.baidu.com/
www.baidu.com has the ability to turn to help.

dream is a dream

dream is a dream

use the printf()function.

what is your life
###联系作者:2736287931@qq.com

int ()`function.

what is your life
###联系作者:2736287931@qq.com

猫老板来嗨 发布了6 篇原创文章 · 获赞 1 · 访问量 140 私信 关注

标签:dream,MOV,AX,world,com,hello
来源: https://blog.csdn.net/qq_21464351/article/details/103990270