c++ api中怎么取各列的值

下图案例中  cout << t->getColumn(17)->getString(0) << endl;取不到想要的值

  cout << t->getColumn(0)->getString(17) << endl;才取到,请问怎么回事?

attachments-2021-09-3qWpVbCZ61337661282c8.png

请先 登录 后评论

1 个回答

wale

用下列方法取值:

table->getColumn(colIndex)->get(rowIndex)->getString()  

详情可参阅 https://gitee.com/dolphindb/Tutorials_CN/blob/master/c++api.md 这个api读写指南

请先 登录 后评论