C:
#include<stdio.h>
void main(){
printf("Hello World!\n");
}
C++:
#include<iostream>
using namespace std;
void main(){
cout<<"Hello World!"<<endl;
}
Java:
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
ActionScript:
trace("Hello World!");
JavaScript:
<script>
alert('Hello World!');
</script>
Assembly:
;Hello World ,Ark_ 2010,9.
assume cs:code,ds:data  ; assume memory
; Data Part.
data  segment
db  'Hello World I am Ark'
data ends
; Code Part.
code segment
start :
  mov ax,data
  mov ds,ax    ; To Get Data
  mov ax,0b800h ; Display Address
  mov es,ax    ; To Save
  mov bx,0
  mov di,0printf怎么加endl
  mov cx,20 ; Counter  20 times
  ;mov es:[bx],byte ptr 41h  ;Test Char Put Char A To The  First Place       
; Loop Part.
s: mov dl,[bx]                         
  mov es:[di+160*11+54],dl            ; Char Info
  mov es:[di+160*11+55],byte ptr 0F8h ; Font Color CA FORMAT: BL RGB I RGB
  inc bx      ; increase 1
  add di,2    ; di+=2
  loop s      ; Circulate S Part .
  mov ah,4ch 
  int 21h    ; return DOS;
  code ends
end start

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。