hi, beginning C++ programming after a semester of C.
I want to fill an array of one data type approx. 50 items in a function, with the variable declared w/i main. I remember using pointers to fill structures with data, but cannot get it to work with my array. I'm sure i'm missing something simple.... any help would be much appreciated. Thanks.
p.s. Would a call by reference work in this case?
Or because its an array is it not possible?
I want to fill an array of one data type approx. 50 items in a function, with the variable declared w/i main. I remember using pointers to fill structures with data, but cannot get it to work with my array. I'm sure i'm missing something simple.... any help would be much appreciated. Thanks.
p.s. Would a call by reference work in this case?
Or because its an array is it not possible?