====== Programmation informatique ======
===== Exemples Hello World =====
* https://fr.wikipedia.org/wiki/Liste_de_programmes_Hello_world
==== Bash ====
#!/bin/bash
echo Hello world!
==== C ====
#include
int main(void)
{
printf("hello, world\n");
return 0;
}
==== Java ====
/* Affichage console */
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
==== Assembleur ====
section .data
helloMsg: db 'Hello world!',10
helloSize: equ $-helloMsg
section .text
global _start
_start:
mov eax,4 ; Appel système "write" (sys_write)
mov ebx,1 ; File descriptor, 1 pour STDOUT (sortie standard)
mov ecx, helloMsg ; Adresse de la chaîne a afficher
mov edx, helloSize ; Taille de la chaîne
int 80h ; Exécution de l'appel système
; Sortie du programme
mov eax,1 ; Appel système "exit"
mov ebx,0 ; Code de retour
int 80h
===== Principes de bases =====
{{gallery>bases?&crop}}
===== Langage =====
{{:logiciels:programmation:computerlanguageschart.png?200|}}
===== Orienté Objet =====
{{gallery>oop?&crop}}