不知道如何连接xlsx文件,使用OTL库,要求使用字符连接。
5条回答 默认 最新
Minuw 2023-07-01 22:19关注#include <xlnt/xlnt.hpp>xlnt::workbook wb;wb.load("example.xlsx"); auto ws = wb.active_sheet();std::string cell_value = ws.cell("A1").value().as<std::string>();std::string result; for (const auto& row : ws) { for (const auto& cell : row) { result += cell.to_string() + "\t"; } result += "\n"; }解决 无用评论 打赏 举报