I have two dimesional char array [1000][30] that contains 1000 words 20 characters long. I want to go through and delete any of the 1000 words that is not unique- ie. those that are repeated. I don't have any idea how to code this can anyone help me?
This is just 'one' technique that would work. Sort the array using qsort() then build a new array from the sorted one but ignore duplicate items when adding them to the new array.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.