📄 subject_43302.htm
字号:
<p>
序号:43302 发表者:开心子 发表日期:2003-06-10 10:00:53
<br>主题:请问ASSERT(pszDibFileName)什么意思?请用专业术语解释,谢谢!!
<br>内容:请问ASSERT(pszDibFileName)什么意思?请用专业术语解释,谢谢!!
<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>回复者:萧风瑟瑟 回复日期:2003-06-10 11:28:34
<br>内容:ASSERT( booleanExpression )<BR><BR>Parameters<BR><BR>booleanExpression<BR><BR>Specifies an expression (including pointer values) that evaluates to nonzero or 0.<BR><BR>Remarks<BR><BR>Evaluates its argument. If the result is 0, the macro prints a diagnostic message and aborts the program. If the condition is nonzero, it does nothing.<BR><BR>The diagnostic message has the form<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><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>Note This function is available only in the Debug version of MFC.<BR><BR>Example<BR><BR>// example for ASSERT<BR>CAge* pcage = new CAge( 21 ); // CAge is derived from CObject.<BR>ASSERT( pcage!= NULL )<BR>ASSERT( pcage->IsKindOf( RUNTIME_CLASS( CAge ) ) )<BR>// Terminates program only if pcage is NOT a CAge*.<BR><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>
回复者:开心子 回复日期:2003-06-12 11:28:02
<br>内容:谢谢你,<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>
回复者:风雷 回复日期:2003-06-17 20:02:45
<br>内容:萧风瑟瑟 has said very well<BR><BR>i don't have to say it again! besides i think his english is very good
<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 + -