[Solved] How would I implement Arrays into this code


There are two ways to add arrays in C++. The first way is to specify the type of the array (int, double, float, char, string) and then specify the length of the array and type all the values until you get to the length. For example int arr[5] = {1, 2, 3, 4, 5}; For the other way you don’t need to specify the length so that means you can put as many elements in the array as you like but you still need the data type and variable name like int arr[] = {1, 2, 3, 5, 8, 13, 21, 34};. Remember though in programming we start counting from 0.

1

solved How would I implement Arrays into this code