5
I’m doing a job for college and I need to check word for word from a "dictionary" on file txt
and compare these words to the words of an array that has been provided.
To make my life easier (because I will have to find some way to make my program faster), is there, in C, the possibility of using set type variables? For example, the Python "sets". Or I’ll have to do everything "in hand" anyway?
c++ provides mathematical set operations for your containers in a generic way. See an example to calculate difference using
std::set_difference
: http://en.cppreference.com/w/cpp/algorithm/set_difference. If you decide to change the question tags to c++ let me know via comment that I reply with usage examples explaining.– pepper_chico
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero