- #include <cstdio>
- int main(int argc, char *argv[])
- {
- int result = 1;
- if (!result)
- goto error;
- printf("corrent.\\n");
- return 0;
- error:
- printf("error handling.\\n");
- return 1;
- }
- //该片段来自于http://www.codesnippet.cn/detail/150720149996.html
来源: http://www.codesnippet.cn/detail/150720149996.html