Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个程序来将数据从外部设备传输到计算机它应该先将数据保存在 RAM 中,然后永远保存它们。我必须使用什么数据结构?所有数据都是整数
这取决于您计划对这些数据执行哪些操作,例如搜索项目、插入新项目、删除…不同的数据结构更适合不同的事务。一般来说,如果没有什么特别的要求 - 简单的数组就足够了。