📄 subject_30764.htm
字号:
<p>
序号:30764 发表者:居白 发表日期:2003-02-26 11:36:06
<br>主题:请问ASSERT是什么?
<br>内容:请问ASSERT是什么?<BR>他怎么用?<BR>谢谢1
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:74LS373 回复日期:2003-02-26 11:52:23
<br>内容:ASSERT就是根据后面的条件(如果否的话)谈出“重试,终止,忽略”对话矿的
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:晚风也渡 回复日期:2003-02-26 12:00:39
<br>内容:ASSERT( booleanExpression )<BR><BR>判断booleanExpression的值,如果是0,则该宏出示诊断消息并且终止程序;如果为非0,则什么都不做。<BR>该诊断消息的格式为:<BR>assertion failed in file <name> in line <num><BR><BR>where name is the name of the source file, and num is the line number of the assertion that failed in the source file.<BR>In the Release version of MFC, ASSERT does not evaluate the expression and thus will not interrupt the program. If the expression must be evaluated regardless of environment, use the VERIFY macro in place of ASSERT.<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:yingpf 回复日期:2003-02-26 12:02:43
<br>内容:ASSERT(表达式);<BR>表达式如果为FALSE,则弹出“重试,终止,忽略”对话框。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -