Changes

Jump to: navigation, search

Langage C

584 bytes added, 22:31, 18 March 2015
/* Trick */
==== Trick ====
1)''In french'' : en C, les commentaires officielle se notent de cette manière :
''In English'': In C, the official commentaries wrote in this manner
''In English'': The commentaries are not influence on the size or the funtions of executable file.
2)''In french'': la fonction "Main" est type '''int''', c'est-à-dire qu'elle renvoie une valeur entière. Pour retourner une valeur d'une fonction, on utilise l'instruction '''return'''. Si celle-ci retourne '0', cela veut dire que le programme s'est fini correctement, sinon cela veut dire qu'il y a eu une erreur dans le programme.
''In English'': The "Main" function is kind integer, it means that it returns a integer value. To return a value in a function, we use the '''return''' instruction. if this value is '0', the programm finished correctly but if the value is different, there is an error in the program.
3) ''In French'' : En C, on va aussi associé des fichier de type header-file ou fichier d'entête (.h) qui permettront d'appeler des fonctions déjà créer comme : '''printf()''' ou '''sin()''',... pour ce faire on utilise la directive "'''#include'''".On trouvera deux façons de les écrire '' In English'' : In C, we associate some header file (.h) which allow to call different functions already created like : '''printf()''' or '''sin()'''... To use these libraries, it must use the directive : "'''#include'''". Here two method to write that : 1) #include <nom_lib.h> indicate at the preprocesseur that the search of this library must be ouside the current directories where is save the global project 2) #include "nom_lib.h" indicate at the preprocesseur that the search of this library must be inside the current directoires
== Liens utiles ==
952
edits