goto跳过代码而不调用析构函数和事物是真的吗?
goto
例如
void f() { int x = 0; goto lol; } int main() { f(); lol: return 0; }
会不会x泄露?
x
c++ goto
c++ ×1
goto ×1