let str = "123ABC, 123ABC"
let results = str.match(/(?<=123)ABC/gi);
console.log(results)
// ["ABC","ABC"]
在文件的顶部,我初始化了一个全局结构。
但是当我使用Hello时,我会得到
“未声明“ Hello”(此功能的首次使用)”以及
“')”标记之前的预期表达式”为错误。
这些错误来自:
static struct Hello {
size_t h;
};
static Hello what;
怎么回事?
答案 0 :(得分:1)
改为使用此
typedef struct Hello
{
size_t h;
} Hello;
static Hello what;
...
Hello *start;
start = &what;