如何创建枚举值数组?我无法摆脱这个错误:
无法将参数 1 从 'cli::array ^' 转换为 'unsigned short'
enum class CS_SENSOR_RESULT {
OPERATION_PASSED = 0,
OPERATION_FAILED,
}
array<CS_SENSOR_RESULT>^ GetResults()
{
array<SENSOR_RESULT>^ result = gcnew array<SENSOR_RESULT>(size);
return result[x]=(CS_SENSOR_RESULT)(int)d5->setDoorState(fa, door, left, right); // Here I got error
}