New answers tagged

-1

First of all. C is not the same as C++. (They are different programming languages) Now, (trying to explain without making it too complicated), arrays are lists of variables. (The image has Numbers with capital letters, my fail, ignore that, shouldn´t have the starting letter in capitals) For example, int numbers[10]; is an array that contains space for ...


2

Ever made a shopping list? That's an array of type std::string[]. Or if you want to get really technical, it could be considered an array of type ItemConsumable[] (because "Steve" is a valid string, but you certainly can't buy him!) In game programming, you would just arrays (or lists) to keep track of objects, actions, events, or other data. It entirely ...



Top 50 recent answers are included