Beginner question here, I need to assign the same value to every element of an array, and have the computer output that value to the console. After I accomplish this, I will be adding another function that will randomly assign a different value to each element of the array, but I haven't got there yet. This program outputs the location of the element, instead of its value.
How can I change the assignment statement in the Constructor's definition, or change the output statement in the print function to output the value of the element.
using namespace std;
int myarray ;
int myarray =99;