如何抛出C中的例外呢? [英] How to throw an exception in C?

查看:139
本文介绍了如何抛出C中的例外呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我输入到这一点谷歌,但只找到HOWTO文档在C ++中,

I typed this into google but only found howtos in C++,

如何做到在C?

推荐答案

有在C中定义C.异常++也不例外和其他语言虽然。

There are no exceptions in C. Exceptions defined in C++ and other languages though.

在C ++异常处理在C ++标准中指定S.15异常处理,有C标准中没有相应的部分。

Exception handling in C++ is specified in the C++ standard "S.15 Exception handling", there is no equivalent section in the C standard.

这篇关于如何抛出C中的例外呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆