Does Windows CE support hash tables?
Quick question of does Windows CE support hash tables? I have a program that I'm modifying and adding to a device that uses Windows CE and I was wond开发者_StackOverflowering if CE supported hash tables since it is used in the original software.
link textI've been waiting to see if someone smarter than I had a different take on this question. No one seems to, so I'm going to assume everyone is confused like me. What exactly do you mean here?
According to Wikipedia:
A hash table or hash map is a data structure that uses a hash function to efficiently map certain identifiers or keys (e.g., person names) to associated values (e.g., their telephone numbers).
Which pretty much aligns with my understanding of them. So it's a data structure. An OS itself doesn't really have any concept of a hash table - the language you're writing in does. Every language that I'm aware of that supports building for Windows CE supports data structures (what kind of language wouldn't?).
- If you're writing in C# or VB.NET, you have the Hashtable class.
- STL has the hash_map
- ATL has the CAtlMap class
- MFC has the CMap class
- If you don't like any of those, you can always write your own or use someone elses.
- For straight C it's pretty easy to find an implementation.
- I don't do much Java work, but I'm certain there's a Hashtable class there too
So, I guess it comes back to you. What exactly do you mean by "if CE supported hash tables"?
精彩评论