Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
3いいね 957 views回再生

C++ Quiz Answer: Loop by Reference

C++ Quiz Shorts:    • She Watches a Short. Realizes — It’s Her J...  

Quiz:    • C++ Quiz: Loop by Reference  

You incremented each element through a loop… but the vector stayed unchanged. What’s going on?

Was it a bug? Or just C++ being tricky?

In this short video, we break down a subtle mistake in range-based for loops — and show how to fix it with one simple change.

#cplusplus #cppquiz #learncpp #codingchallenge #shorts

コメント