mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 20:21:50 +02:00
Add bool to C++ roadmap (#5578)
This commit is contained in:
committed by
GitHub
parent
f2a2ac9ec8
commit
c72dd0081c
@@ -49,6 +49,7 @@ C++ has several basic data types for representing integer, floating-point, and c
|
|||||||
- `float`: single-precision floating-point values
|
- `float`: single-precision floating-point values
|
||||||
- `double`: double-precision floating-point values
|
- `double`: double-precision floating-point values
|
||||||
- `char`: single characters
|
- `char`: single characters
|
||||||
|
- `bool`: boolean values
|
||||||
|
|
||||||
Variables must be declared with a data type before they can be used:
|
Variables must be declared with a data type before they can be used:
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ int x;
|
|||||||
float y;
|
float y;
|
||||||
double z;
|
double z;
|
||||||
char c;
|
char c;
|
||||||
|
bool b;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Control Structures
|
## Control Structures
|
||||||
|
Reference in New Issue
Block a user