首页 > 编程语言 > 详细

不同编程语言实现HelloWorld程序

时间:2020-06-25 19:50:05      阅读:68      评论:0      收藏:0      [点我收藏+]

C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HelloWorld
{
      class Program
      {
            static void Main(string[] args)
            {
                  Console.WriteLine("Hello World!");
                  Console.ReadLine();
            }
      }
}

C++

#include <iostream>

int main()
{
      std::cout << "Hello World!" << std::endl;
      std::cin.get();
      return 0;
}

C语言

#include <stdio.h>

int main()
{
      printf("Hello World!");
      system("pause");
      return 0;
}

java

class HelloWorld{
    public static void main(String[] arr){
          System.out.println("Hello World!");
    }
}

python

print "Hello World!"

不同编程语言实现HelloWorld程序

原文:https://www.cnblogs.com/fenggwsx/p/13192446.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!