特征码的通配符??和*号在vs里面怎么不能用?-灵析社区

万码JFG3236P

uint8_t pattern[] = { 0x73, 0x3A, 0x??, 0x??, 0x??, 0x??, 0x20 }; 直接说是无效的十六进制数 ![https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816971922_E9NT.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816971922_E9NT.png) ![https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816988563_9oqf.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816988563_9oqf.png)

阅读量:202

点赞量:0

问AI
C语言的通配符, 是字符串通配符*代表0个或多个字符,?代表一个字符 你问题中是是干啥, 完全不是一码事 #include typedef struct { uint8_t value; int is_wildcard; } PatternByte; PatternByte pattern[] = { {0x73, 0}, {0x3A, 0}, {0x00, 1}, // ?? replaced with 0x00 and is_wildcard set to 1 {0x00, 1}, // ?? replaced with 0x00 and is_wildcard set to 1 {0x00, 1}, // ?? replaced with 0x00 and is_wildcard set to 1 {0x00, 1}, // ?? replaced with 0x00 and is_wildcard set to 1 {0x20, 0} };