0

Hi I want to know : 1 how to add a persons name to the end of a dynamic array?
2 how to check if the array is full, and if so to print a constant string?
3 how to search in a dynamic array for a specific name and replace it?
4 Returning a name at a specif index in the dynamic array

4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Tellalca
0

Hi I want to know : 1 how to add a persons name to the end of a dynamic array?
2 how to check if the array is full, and if so to print a constant string?
3 how to search in a dynamic array for a specific name and replace it?
4 Returning a name at a specif index in the dynamic array

Exactly as you would a regular array. There is no real difference.

Edited by WaltP: n/a

0

1-Ensure there is room for that and assign it
2-Full is something that you define. If the items in the array is equal to limit, it is full
3-Iterate over each element and check if it equals the name
4-Add index to the array pointer and dereference it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.