ASSERT功能? [英] ASSERT function ?
本文介绍了ASSERT功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请说明.
解决方案
您应该只对它进行Google搜索.
如果Assert
的参数结果为false,则它将使用一条引用assert语句的消息终止该程序.
如果发生意外情况,通常在调试过程中使程序失败.
一篇很好的文章对此进行了解释:声明是您的朋友 [ http://www.cplusplus.com/reference/clibrary/cassert/assert/ [ ^ ]
http://www.functionx.com/cpp/Lesson06.htm [ http://msdn.microsoft.com/en-us/library/9sb57dw4.aspx [ ^ ]
MFC ASSERT [ please explain.解决方案You should have simply Googled it.
Assert
will terminate the program with a message quoting the assert statement, if its argument turns out to be false.
It''s commonly used during debugging to make the program fail if an unexpected condition occurs.
A good article explaining it: Assert is your friend[^]
Also refer:
http://www.cplusplus.com/reference/clibrary/cassert/assert/[^]
http://www.functionx.com/cpp/Lesson06.htm[^]
http://msdn.microsoft.com/en-us/library/9sb57dw4.aspx[^]
MFC ASSERT[^]
It forces a DebugBreak() if the evaluation within the brackets is not true
it ASSERTS that something is true
这篇关于ASSERT功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文