This commit is contained in:
Béranger 2021-09-29 10:52:37 +02:00
commit 96d240ad58
4 changed files with 60 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

28
C/binary_build.drawio Normal file
View file

@ -0,0 +1,28 @@
<mxfile host="65bd71144e">
<diagram id="p3NWl2w_Bpz-CquEactT" name="Page-1">
<mxGraphModel dx="527" dy="790" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="" style="whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="100" y="220" width="180" height="210" as="geometry"/>
</mxCell>
<mxCell id="3" value="" style="whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="100" y="180" width="180" height="40" as="geometry"/>
</mxCell>
<mxCell id="4" value="RAW DATA" style="text;html=1;resizable=0;autosize=1;align=center;verticalAlign=middle;points=[];fillColor=none;strokeColor=none;rounded=0;fontColor=#000000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="280" y="190" width="80" height="20" as="geometry"/>
</mxCell>
<mxCell id="5" value="OULA" style="whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;strokeWidth=3;fontColor=#000000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="100" y="180" width="80" height="20" as="geometry"/>
</mxCell>
<mxCell id="7" value="O | U | L | A" style="whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;strokeWidth=3;fontColor=#000000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="110" y="350" width="80" height="20" as="geometry"/>
</mxCell>
<mxCell id="8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontColor=#000000;" edge="1" parent="1" source="7" target="7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

0
C/him.md Normal file
View file

32
C/rappels.md Normal file
View file

@ -0,0 +1,32 @@
# Rappels de langage C
## Pointeurs
```
struct S {
int x;
int y
}
struct S v
v.x
struct S * p
p -> x
(*p).x // Plus correct mais plus long
```
Déclarer
```
char* ch = "OULA" // Ici on a une variable ch en mémoire qui est l'adresse d'un endroit en mémoire ReadOnly ou il y est écrit "OULA"
charch[]="OULA" // Ici on déclare la constante OULA en tant que variable locale.
// Ici char* ch ="OULA" correspond à une adresse. A EVITER.
```
**Si on tente de modifier une variable dans une zone ReadOnly, on a erreur à l'exécution**
<p align="center">
<img src="./Rappels/Images/binary_build.png)">
</p>