I have a code:
Array a1( 1,2,3,4,-1), a2(1,3,5,7,11,-1);
How to make Array
constructor when I know that in the end is always -1
, amount of numbers before -1
is unknown and class Array
has only one constructor?
I have a code:
Array a1( 1,2,3,4,-1), a2(1,3,5,7,11,-1);
How to make Array
constructor when I know that in the end is always -1
, amount of numbers before -1
is unknown and class Array
has only one constructor?