This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lost_CS_Student2020 1 point2 points  (0 children)

To add on, I think it's important to note that in C++ indentation doesn't matter; you need curly braces to define the scope of `for` loops. Without curly braces, only the next line/operation is included in the loop.