QUIZCPP Telegram 1494
➡️ Циклы for для перебора элементов в заданном диапазоне

• Упрощённый способ обхода элементов контейнера.

std::array a {1, 2, 3, 4, 5};
for (int& x : a) x *= 2;
// a == { 2, 4, 6, 8, 10 }

• Обратите внимание на различие между использованием int и int&:

std::array a {1, 2, 3, 4, 5};
for (int x : a) x *= 2;
// a == { 1, 2, 3, 4, 5 }

👩‍💻

@quizcpp



tgoop.com/quizcpp/1494
Create:
Last Update:

➡️ Циклы for для перебора элементов в заданном диапазоне

• Упрощённый способ обхода элементов контейнера.

std::array a {1, 2, 3, 4, 5};
for (int& x : a) x *= 2;
// a == { 2, 4, 6, 8, 10 }

• Обратите внимание на различие между использованием int и int&:

std::array a {1, 2, 3, 4, 5};
for (int x : a) x *= 2;
// a == { 1, 2, 3, 4, 5 }

👩‍💻

@quizcpp

BY С++ задачи и вопросы




Share with your friend now:
tgoop.com/quizcpp/1494

View MORE
Open in Telegram


Telegram News

Date: |

Telegram message that reads: "Bear Market Screaming Therapy Group. You are only allowed to send screaming voice notes. Everything else = BAN. Text pics, videos, stickers, gif = BAN. Anything other than screaming = BAN. You think you are smart = BAN. When choosing the right name for your Telegram channel, use the language of your target audience. The name must sum up the essence of your channel in 1-3 words. If you’re planning to expand your Telegram audience, it makes sense to incorporate keywords into your name. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot. Telegram channels enable users to broadcast messages to multiple users simultaneously. Like on social media, users need to subscribe to your channel to get access to your content published by one or more administrators. The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said.
from us


Telegram С++ задачи и вопросы
FROM American