i have 2 parallel arrays
1st
array is item identifier, 2nd is numstock of type int, 3rd is unit price
of type float and 4th is value of stock of type float.
value of stock = numstock [] * unitprice []?
do i use pointers?
This is a discussion on parallel arrays within the C++ Programming forums, part of the General Programming Boards category; i have 2 parallel arrays 1st array is item identifier, 2nd is numstock of type int, 3rd is unit price ...
i have 2 parallel arrays
1st
array is item identifier, 2nd is numstock of type int, 3rd is unit price
of type float and 4th is value of stock of type float.
value of stock = numstock [] * unitprice []?
do i use pointers?
No. What are your 2 parallel arrays, I see four.