Small changes in the translation (#33146)
This commit is contained in:
@ -4,9 +4,9 @@ localeTitle: Faixa para Loop
|
|||||||
---
|
---
|
||||||
## Baseado em intervalo para loop
|
## Baseado em intervalo para loop
|
||||||
|
|
||||||
O loop `for` baseado `for` ranged permite um loop fácil em um intervalo de elementos (como elementos em um contêiner).
|
O loop `for` baseado em intervalos ou range-based `for` loop, permite um loop fácil em um intervalo de elementos (como elementos em um contêiner).
|
||||||
|
|
||||||
Com tradicional `for` loop:
|
Com o tradicional `for` loop:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
std::vector<std::string> stringList {"one", "two", "three"};
|
std::vector<std::string> stringList {"one", "two", "three"};
|
||||||
@ -17,7 +17,7 @@ std::vector<std::string> stringList {"one", "two", "three"};
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Com base `for` intervalo `for` loop:
|
Com o loop `for` baseado em intervalos:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
std::vector<std::string> stringList {"one", "two", "three"};
|
std::vector<std::string> stringList {"one", "two", "three"};
|
||||||
@ -27,4 +27,4 @@ std::vector<std::string> stringList {"one", "two", "three"};
|
|||||||
std:cout << singleString << std::endl;
|
std:cout << singleString << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user