C++ 中最合适的表表示形式

Most suitable table representation in c++?

本文关键字:表示 C++      更新时间:2023-10-16

我需要经常用 c++ 表示一个表。例如,在应用程序中,我需要维护一个表,如下所示。

int analog_channel;
int operator_channel;
state channel_state;
string phone_number;

但我需要使analog_channeloperator_channel可索引。对于此类数据,boost_multiindex或其他东西,C++ 中最合适的表表示形式是什么?

boost::multi_index 将是一个不错的选择。

你试过qT吗?我认为它具有一些boost的功能,但这就是我使用的,它很可爱:D

http://qt.nokia.com/products/

您可以查看该站点上的功能列表,以获取每个类的详细信息...