index.html

来自「this is a mirrored site c-faq. thought 」· HTML 代码 · 共 85 行

HTML
85
字号
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN"><!-- This collection of hypertext pages is Copyright 1995-2005 by Steve Summit. --><!-- Content from the book "C Programming FAQs: Frequently Asked Questions" --><!-- (Addison-Wesley, 1995, ISBN 0-201-84519-9) is made available here by --><!-- permission of the author and the publisher as a service to the community. --><!-- It is intended to complement the use of the published text --><!-- and is protected by international copyright laws. --><!-- The on-line content may be accessed freely for personal use --><!-- but may not be published or retransmitted without explicit permission. --><!-- --><!-- this page built Sat Dec 24 21:47:46 2005 by faqproc version 2.7 --><!-- from source file bool.sgml dated Thu Jul 15 19:41:07 2004 --><!-- corresponding to FAQ list version 4.0 --><html><!-- Mirrored from c-faq.com/bool/index.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 07:55:08 GMT --><head><meta name=GENERATOR content="faqproc"><title>Boolean Expressions and Variables</title></head><body bgcolor="#ffffff">&nbsp;<a href="../index-2.html"><img src="../images/buttontop.gif" alt="top/contents"></a><a href="../search.html"><img src="../images/buttonsrch.gif" alt="search"></a><hr><H1>9. Boolean Expressions and Variables</H1><p><a href="booltype.html" rel=subdocument>9.1</a>What is the right type to use for Boolean values in C?Is there a standard type?ShouldI use<TT>#define</TT>s or enumsfor the true and false values?</p><p><a href="bool2.html" rel=subdocument>9.2</a>Isn't #defining <TT>TRUE</TT> to be 1 dangerous, since any nonzero valueis considered ``true'' in C?What if a built-in logical or relational operator ``returns''something other than 1?</p><p><a href="ifptr.html" rel=subdocument>9.3</a>Is <TT>if(p)</TT>,where <TT>p</TT> is a pointer,avalidand portable test?</p><p><a href="macros.html" rel=subdocument>9.4</a>Should I use symbolic names like <TT>TRUE</TT>and <TT>FALSE</TT> for Boolean constants,or plain 1 and 0?</p><p><a href="thirdparty.html" rel=subdocument>9.5</a>Athird-partyheader fileI just started usingis defining its own <TT>TRUE</TT>and <TT>FALSE</TT> valuesincompatibly withthe code I've already developed.What can I do?</p><hr><p><a href="../index-2.html">top</a></p><p><a href="../questions.html"><img src="../images/buttontop.gif" alt="contents"></a><a href="../search.html"><img src="../images/buttonsrch.gif" alt="search"></a><br><a href="../about.html">about this FAQ list</a>&nbsp;<a href="../eskimo.html">about eskimo</a>&nbsp;<a href="../search.html">search</a>&nbsp;<a href="../feedback.html">feedback</a>&nbsp;<a href="copyright.html">copyright</a><p>Hosted by<a href="http://www.eskimo.com/"><img src="../../www.eskimo.com/img/link/eskitiny.gif" alt="Eskimo North"></a></p></body><!-- Mirrored from c-faq.com/bool/index.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 07:55:10 GMT --></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?