您的位置首页百科知识

helloworld 编程

helloworld 编程

的有关信息介绍如下:

helloworld 编程

hello world作为所有编程语言的起始阶段,占据着无法改变的地位。

下面是几种常见编程语言的helloworld写法。

1.C语言

#include

int main(void)

{

printf("Hello,world!\n");

return 0;

}

2.C++

#include

using namespacestd;

int main(void)

{

cout<<"Hello,world!"<

return 0;

}

3.C#

using System;

class HelloWorld

{

public static void Main()

{

Console.WriteLine("Helloworld!");

}

}

4.java

public class HelloWorld{public static void main(String args[]){System.out.println("HelloWorld");}}

5.javascript

6.Perl

print "HelloWorld\n";

7.PHP

echo "HelloWorld";

8.Python

print "HelloWolrd\n";

9.ASP

<%

response.write("HelloWorld")

%>