简体   繁体   English

在移动设备上用于电话簿的最佳数据结构是什么

[英]What is the best data structure to use for a phone book on a mobile device

If you were to implement a phone book where each entry will be first name, last name and phone number of your contacts, what would be the best data structure for this? 如果您要实现一个电话簿,其中每个条目将是您的联系人的名字,姓氏和电话号码,那么最佳数据结构是什么? The phone book will give the user the option to sort by first name. 电话簿将为用户提供按名字排序的选项。 The other caveat is that this app will run on a mobile device. 另一个警告是这个应用程序将在移动设备上运行。

使用MS SQL Compact Edition。

I'd go with a SQLITE database, personally. 我个人会使用SQLITE数据库。 There are lots of libraries to use them across many languages and they're fairly common for things such as this. 有许多库可以在多种语言中使用它们,对于像这样的事情它们很常见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM