sách gpt4 ai đã đi

C语言语法歧义: looping construct switch contains different switching construct other than 'case'

In lại 作者:行者123 更新时间:2023-11-30 14:40:43 28 4
mua khóa gpt4 Nike

阅读 git repo 中截取的以下代码时遇到一些问题。链接到存储库和问题:

https://github.com/paolo-sz/fatty/blob/master/src/winmain.c#L2649

 switch (confirm_multi_tab()) {
when IDNO:
if (!cfg.confirm_exit || confirm_tab_exit()) {
child_terminate(term->child);
}
return;
when IDCANCEL:
return;
}

有人可以解释一下为什么 switch 语句中有 'when' 而不是 'case' 。感谢您的帮助。

1 Câu trả lời

请参阅 https://github.com/paolo-sz/fatty/blob/master/src/std.h 处的 std.h 文件第 143 行:

#define when break; case

关于C语言语法歧义: looping construct switch contains different switching construct other than 'case' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55408293/

28 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com