紧急求救:::自定义结构的问题?
自定义了一个结构,怎么定义其数组?
typedef struct CELLFIELD
{
CString fieldName;
float fieldValue;
}CellField;
CellField cellfield[17];这句运行时总有错误,
C:\我的项目\jcsjcj\jcsjcjDlg.cpp(436) : error C2664: '__thiscall CELLFIELD::CELLFIELD(const struct CELLFIELD &)' : cannot convert parameter 1 from 'struct CELLFIELD [17]' to 'const struct CELLFIELD &'
Reason: cannot convert from 'struct CELLFIELD [17]' to 'const struct CELLFIELD'
No constructor could take the source type, or constructor overload resolution was ambiguous
这是什么意思,怎么解决?谢谢了