Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
compilation [Le 06/03/2015, 00:16] 196.200.173.81 [Langages C/C++] |
compilation [Le 31/08/2022, 23:33] (Version actuelle) moths-art Passage de http à https sur les liens externes (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) |
||
---|---|---|---|
Ligne 12: | Ligne 12: | ||
===== Langages C/C++ ====== | ===== Langages C/C++ ====== | ||
- | #include <iostream> | ||
- | #include "UnRationnel.h" | ||
- | |||
- | using namespace std; | ||
- | |||
- | class UnRationnel | ||
- | { | ||
- | int sonNum,sonDenom; | ||
- | public : | ||
- | UnRationnel(int,int); //un constructeur de la classe | ||
- | void affiche(); //affichage d'une fraction | ||
- | void somme (UnRationnel, UnRationnel); //determine la somme de deux fractions | ||
- | }; //UnRationnel | ||
- | |||
- | |||
- | int main() | ||
- | { | ||
- | UnRationnel i(1,5),j(2,3),k(1,1); | ||
- | k.somme(i,j); | ||
- | k.affiche(); | ||
- | return 1; | ||
- | } | ||
- | UnRationnel::UnRationnel(int telNum,int telDenom) | ||
- | { | ||
- | sonNum=telNum; | ||
- | sonDenom=telDenom; | ||
- | } | ||
- | //affichage d'une fraction | ||
- | void UnRationnel::affiche() | ||
- | { | ||
- | cout <<sonNum <<"/" <<sonDenom << endl; | ||
- | } | ||
- | //affiche | ||
- | //determine la somme de deux fractions | ||
- | void UnRationnel::somme(UnRationnel telX,UnRationnel telY) | ||
- | { | ||
- | sonNum=telX.sonNum*telY.sonDenom+telY.sonNum*telX.sonDenom; | ||
- | sonDenom=telX.sonDenom*telY.sonDenom; | ||
- | }//somme() | ||
- | |||
==== Installation du compilateur GNU C et du compilateur GNU C++ ==== | ==== Installation du compilateur GNU C et du compilateur GNU C++ ==== | ||
Ligne 73: | Ligne 33: | ||
* [[apt>yasm]] | * [[apt>yasm]] | ||
- | ===== Langage java ===== | + | ==== Reverse engineering ==== |
+ | === Si vous pratiquez le reverse engineering === | ||
+ | [[http://bokken.re|Bokken]],un framework en python basé sur Radare sous licence libre\\ | ||
+ | permet de faire de l'analyse de binaire. Il supporte les fichiers au format PE, Elf et mach0, et les architectures ARM, i386 et x86-64 | ||
+ | ===== Langage java ===== | ||
==== Installation du compilateur Java GNU gcj ==== | ==== Installation du compilateur Java GNU gcj ==== | ||
Ligne 92: | Ligne 56: | ||
===== Langage Fortran ===== | ===== Langage Fortran ===== | ||
- | |||
==== Installation du compilateur Fortran GNU ==== | ==== Installation du compilateur Fortran GNU ==== | ||
- | |||
Pour installer le compilateur GNU Fortran, [[:tutoriel:comment_installer_un_paquet|installez le paquet]] **[[apt>gfortran]]**. | Pour installer le compilateur GNU Fortran, [[:tutoriel:comment_installer_un_paquet|installez le paquet]] **[[apt>gfortran]]**. | ||
==== Installation du compilateur Intel® Fortran ==== | ==== Installation du compilateur Intel® Fortran ==== | ||
- | |||
Voir la doc [[fortran#intel_fortran_compiler|fortran]]. | Voir la doc [[fortran#intel_fortran_compiler|fortran]]. | ||
===== Langage Pascal ===== | ===== Langage Pascal ===== | ||
- | + | [[fpc]] - Compilateur Free Pascal, utilisé par l'IDE [[Lazarus]]. | |
- | Voici deux compilateurs Pascal: | + | |
- | + | ||
- | *[[fpc]] - Compilateur Free Pascal, utilisé par l'IDE [[Lazarus]]. | + | |
- | *[[gpc]] - Compilateur Pascal GNU. | + | |
===== Langage OCaml ===== | ===== Langage OCaml ===== | ||
- | Langage développé en France par l'INRIA ([[http://caml.inria.fr/]]). | + | Langage développé en France par l'INRIA ([[https://caml.inria.fr/]]). |
- | * [[ocamlc]] et [[ocamlopt]] - Compilateur bytecode et code natif. | + | * **[[apt>ocaml]]** et **ocamlopt** - Compilateur bytecode et code natif. |
- | * [[js_of_ocaml]] - Compilateur vers JavaScript. | + | * **js_of_ocaml** - Compilateur vers JavaScript. |
===== Installation des outils GNU autotools ===== | ===== Installation des outils GNU autotools ===== | ||