Début OS
這個提交存在於:
父節點
71db845fa7
當前提交
422336b4aa
共有 2 個檔案被更改,包括 16 行新增 和 12 行删除
25
C/rappels.md
25
C/rappels.md
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Pointeurs
|
||||
|
||||
```
|
||||
```C
|
||||
struct S {
|
||||
int x;
|
||||
int y
|
||||
|
|
@ -17,7 +17,7 @@ p -> x
|
|||
|
||||
Déclarer
|
||||
|
||||
```
|
||||
```C
|
||||
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.
|
||||
|
|
@ -35,7 +35,7 @@ charch[]="OULA" // Ici on déclare la constante OULA en tant que variable locale
|
|||
|
||||
Pour une fonction, si on souhaite modifier la valeur d'une variable en la passant en argument d'une fonction, il est impératif de passer l'adresse de la variable en argument et non pas sa valeur.
|
||||
|
||||
```
|
||||
```C
|
||||
void fonction(int i){ i++;}
|
||||
int j=5;
|
||||
fonction(j);
|
||||
|
|
@ -50,7 +50,7 @@ printf("%d",j); // OUTPUT : 6;
|
|||
```
|
||||
|
||||
# printf
|
||||
```
|
||||
```C
|
||||
%d // int
|
||||
%f // float
|
||||
%c // char
|
||||
|
|
@ -64,7 +64,7 @@ printf("%d, %c, %s", i , ch , str);
|
|||
|
||||
# Structures
|
||||
##
|
||||
```
|
||||
```C
|
||||
struct s {
|
||||
int e;
|
||||
char ch[4];
|
||||
|
|
@ -81,12 +81,13 @@ typedef struct {
|
|||
```
|
||||
# Opérateurs Logiques
|
||||
|
||||
```
|
||||
& logique bits à bits
|
||||
&& bits à bits
|
||||
```C
|
||||
& // logique bits à bits
|
||||
&& // bits à bits
|
||||
|
||||
| OU Logique Bitsà bits
|
||||
|| OU Logique
|
||||
| // OU Logique Bitsà bits
|
||||
|| // OU Logique
|
||||
|
||||
^ OU bit à bit exclusif
|
||||
^^ OU Bits à bit
|
||||
^ // OU bit à bit exclusif
|
||||
^^ // OU Bits à bit
|
||||
```
|
||||
3
OS/rappels.md
一般檔案
3
OS/rappels.md
一般檔案
|
|
@ -0,0 +1,3 @@
|
|||
# Systèmes d'exploitation
|
||||
## Concepts et implémentations appliqués à l'architecture Intelx86
|
||||
Stéphane Duverger, Airbus Group Innovations
|
||||
載入中…
新增問題並參考