Using Arrays in C++ with a Constant One way to save yourself work when creating an array is to first declare a constant equal to the size you wish to use for your array. This makes things easier for you as a programmer because if you wish to change the size later, you can just change the value of your constant! Take a look at this sample: [Array using a Constant]. Assignment Modify your last array program to include the use of a constant. |