|
|
Contact rec[]
and array size cannot be change so adding new element to array when array full is almost imposible, i think. you can use dynamic memory allocation to change its size but the value wiill be removed because it'll change the address of the array. You can use std::vector its easier