world在计算机程序里的哪,经典 HelloWorld 程序是什么?

满意答案

dcebd7a0de6265b6ccae5ead692f1eab.png

愛_零花錢

2013.08.24

dcebd7a0de6265b6ccae5ead692f1eab.png

采纳率:44%    等级:12

已帮助:21766人

“Hello, World”程序指的是只在计算机屏幕上输出“Hello, World!”(意为“世界,你好!”)这行字符串的计算机程序。一般来说,这是每一种计算机编程语言中最基本、最简单的程序,亦通常是初学者所编写的第一个程序。它还可以用来确定该语言的编译器、程序开发环境,以及运行环境是否已经安装妥当。

C#版的helloworld

public class HelloWorld {

public static void Main(string[] args) {

Console.WriteLine("Hello, World!");

}

}

Window SDK helloworld

#include

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

{

MessageBox(NULL, _T("Hello, World"), _T("问好"), MB_OK);

return 0;

}

java版的helloworld

public class HelloWorld{

public static void main(String[]args){

System.out.println("Hello, World!");

}

}

c语言版的helloworld

#include

int main(void)

{

printf("\nhello world!");

return 0;

}

汇编的helloworld

data SEGMENT

msg DB 'Hello, world.$'

data ENDS

code SEGMENT

ASSUME CS:code,DS:data

start:MOV AX,data

MOV DS,AX

lea dx,msg

mov ah,9h

int 21h

MOV AX,4C00h

INT 21h

code ENDS

END start

objective-c 版Helloworld

#import

int main(int argc, const char *argv[])

{

NSLog(@"HelloWorld!");

return (0);

}

C++的helloworld

#include

int main(void)

{

std::cout<

}

45分享举报

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值