Hello Everybody :
i'm doing that list for a program
1. add
2. modify
3. delete
i use structures to make a database , but i really need to know how to delete a name from this record after saving it ,
any ideas ? i'll be so thankfull ...
Hello Everybody :
i'm doing that list for a program
1. add
2. modify
3. delete
i use structures to make a database , but i really need to know how to delete a name from this record after saving it ,
any ideas ? i'll be so thankfull ...
Well without a detailed description of what you are trying to acheive, I dont think we stand a chance of knowing what your on about. More details please and at least some code.
hoping to be certified (programming in c)
here's the news - I'm officially certified.
in breif , HOW TO DELETE A SPECIFIC RECORD FROM AN ARRAY AFTER STORING IT ??? (NEED A FUNCTION)
>HOW TO DELETE A SPECIFIC RECORD FROM AN ARRAY AFTER STORING IT
Posting the same vague question again but this time in caps doesn't help us very much. But since you actually told us the data structure that you're using I can offer a suggestion. Because this is an array you will have a difficult time deleting a record from anywhere but the end because you have to delete the record, shift all records after it to fill the empty spot, and then resize the array to match the new number of elements. There is no standard function to delete from an array so you will have to write it yourself.
>(NEED A FUNCTION)
For the resizing part I can help, look for a function called realloc.
-Prelude
My best code is written with the delete key.