Notes
Size empty class
The size of an empty class is not zero. It is 1 byte generally. It is nonzero to ensure that the two different objects will have different addresses.
FPS to MS
1000/FPS = ms
Condition Ternaire :
cpp
bool b;
int vrai;
int faux;
int c == b ? vrai : faux;Nombre Octets :
| Type | Octet |
|---|---|
| int | 4 |
| long int | 4 |
| long long int | 8 |
| short int | 2 |
| float | 4 |
| double | 8 |
| bool | 1 |
| char | 1 |
| string | 28 |