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

Recommended Answers

All 3 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.