Bonjour,
Je suis en train de checher une solution pour mettre en mode sleep mon microcontroller SMD21.
Je suis tombé sur ceci
/*
Copyright (c) 2018 Patrick Moffitt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This file has been truncated. show original
qui inclu un fichier hpp
J'ai pour habitude d'inclure de fichier avec l'extention .h
Mais qu'est-ce que c'est qu'un fichier avec l'extention hpp? Qu'est-ce qu'il le différencie avec un fichier .h ou .cpp?
Merci pour vos lumières
68tjs
December 2, 2018, 5:38pm
2
Ben ce que j'ai pu en lire c'est un truc pour dire que c'est un fichier h exactement conforme à un fichier h mais qui est en couple avec un fichier cpp.
Ça n'a strictement rien d'un obligation et c'est d'une utilité discutable.
kamill
December 2, 2018, 7:41pm
4
Bonjour,
L'extension des fichiers .h peut être quelconque. L'extension .h est une convention (mais préconisée).
Comme le dit 68tjs une fichier .hpp et .h c'est pareil. On le voit quelquefois utilisé pour indiquer que le fichier contient des éléments C++ (définition de class par exemple).
68tjs
December 2, 2018, 7:53pm
5
C'est un pacs ?
Tout à fait.
Je n'ai pas employé ce terme parce que notre forum est francophone et le pacs est franchouillard.
Certains Suisses, Canadiens ou Belges qui rodent ici auraient pu me reprendre .
jfs
December 2, 2018, 8:17pm
6
68tjs:
Tout à fait.
Je n'ai pas employé ce terme parce que notre forum est francophone et le pacs est franchouillard.
Certains Suisses, Canadiens ou Belges qui rodent ici auraient pu me reprendre .
Le pacs existe également en Suisse....
.