typedef enum testCaseId {"TC-HIW-0019"= 0,
"TC-HIW-0020","TC-HIW-0021"
} testCaseId;
我需要在枚举中表示我的测试用例.在我的测试功能中,我需要在测试用例之间切换,如:
void testfunc(uint8_t no)
{
switch(no)
{
case 0:
case 1:
default:
}
}
Run Code Online (Sandbox Code Playgroud)
所以任何人都可以帮助如何使用枚举来声明字符串.