Multiset (as dictionary) searching

Z

zaharije.pasalic

How to search multiset<string,string> for all pairs (s1,s2) that have
first s1.length() chars same? Something like
strncmp(s1.c_str(), s2.c_str(),s1.length()).

U used "flat" search for dictionary but it finds just words that are
strictly same. It will be good to display "BOXING" for word "BOX".

Thanks,
Zaharije Pasalic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top