Sometimes we may define a BOOL B; B = YES; NSLog (@ "BOOL -- B --> % @", B); then the running program will crash, this is because % @ prints an object and BOOL is a data type. Use % @ to ensure that the corresponding parameter must be an object and
the source code found on the internet is printed by Using VC, but there is a bug. I have added comments. If someone can solve these bugs, please let me know. Code :
/* Function: print the local files that can be opened by any browser and implement
ShoneSharp Language (S #) design and use introduction series (7)-Boolean Bool and Object,
ShoneSharp Language (S #) design and use introduction series (7)-Boolean Bool and Object Author: Shone
Disclaimer: you are welcome to repost the original
Python Basic Tutorials 60 lessons-18th class bool type conversion "Python 18th class" bool type conversion
A few last words left yesterday about the conversion of type bool, which has one row:
BOOL (' False ')
Print the result and you will find that
Test items:1. arithmetic operation of four bool Variables2. Memory size of the bool variableTest code:[Cpp]1. # include 2.3. using namespace std;4.5. int main ()6 .{7. int iSizeCouner = 0;8. bool bTestBool = false;9. bool a = 3;10. bool B = 1;11.
Print and print previews are often used in general software development, and for the document/view (Doc/view) framework in VC6.0, the default print and print previews are easy to use. However, if the application is based on a dialog box, there is no
Tag: logical operator returns precedence IV div pre otherwise false logical operationlogical operators not and orOperator Precedence not and >orPrinter (x or y) x is nonzero, returns x, otherwise returns yPrint or 2)printor 2)printor 1)print or 3)#
Welcome to the Linux community forum and interact with 2 million technical staff to access echo. The difference between print is that echo can output multiple variable values, while print only has one variable, which is output as a string. Another
Boolean type
Boolean description
Judging
First, the Boolean descriptionBoolean values in Python are expressed using constants true and false; note case;The types returned by comparison operators = = are type bool, and Boolean types are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.