【发布时间】:2019-09-12 15:16:22
【问题描述】:
当我尝试读取已在元组数组中声明的一维数组时,弹出错误“IBM ILOG Concert:excel:范围宽度不适合元组的数量”。我在这里做错了什么?
*.mod 文件是:
int a=5;
range r=1..a;
tuple new{
int b;
int c;
int d;
int e[1..4];
}
new test[r]=...;
*.dat 文件为:
SheetConnection sheet("test_sheet.xlsx");
test from SheetRead(sheet,"data");
“test_excel.xlsx”文件中定义的“数据”(5行7列):
b c d e[1] e[2] e[3] e[4]
10 9 6 5 4 6 4
4 8 7 5 10 5 5
8 9 5 1 2 4 9
8 2 1 1 4 7 3
5 4 9 5 7 8 5
【问题讨论】: