Hello, as I writed the code for Looping Through The Hazard I sometimes forgot the [i]
(nebulae.frame
) and then as I pressed tab this occured: nebulae->fram
e. Can someone please tell me what this is and for what it is used for.
The arrow operator → is used to access variables and functions for variables that are pointers. You’ll learn more about later in the course.
I am curious as to why VS Code made that change for you automatically, though. Probably has something to do with the first code you mentioned. Which should be nebulae[i].frame
1 Like
thank you
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.