各种语言的hello world程序

各种语言的hello world程序

[文件] helloWorld.txt
//====================== c++ ============================
#include<iostream>
int main(){
    std::cout<<"hello,world!!!";
    return 0;
}
 
//====================== 汇编 ============================
DATAS  SEGMENT
     STRING  DB  13,10,'hello,world!!!',13,10,'$'
DATAS  ENDS
 
CODES  SEGMENT
     ASSUME    CS:CODES,DS:DATAS
START:
     MOV  AX,DATAS
     MOV  DS,AX
     LEA  DX,STRING
     MOV  AH,9
     INT  21H
     MOV  AH,4CH
     INT  21H
CODES  ENDS
 
END   START
 
//====================== 批处理 ============================
@echo off
echo hello,world!!!
pause
 
//====================== c ============================
#include<stdio.h>
 
main(){
    printf("hello,world!!!");
}
 
//====================== go ============================
package main
 
func main() {
    print("hello,world!!!")
}
 
//====================== groovy ============================
print "hello,world!!!";
 
//====================== html ============================
<html>
    <head>
        <title>javascript</title>
        <script type="text/javascript">
            alert("hello,world!!!");
        </script>
    </head>
    <body>hello,world!!!</body>
</html>
 
//====================== java ============================
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("hello,world!!!");
    }
}
 
//====================== php ============================
<?php
 
echo "hello,world!!!";
 
//====================== perl ============================
#!perl
use strict;
use warnings;
 
print 'hello,world!!!';
 
//====================== python ============================
print("hello,world!!!")
 
//====================== sql ============================
--oracle
select 'hello,world!!!' from dual;
--mysql
select 'hello,world!!!';