![]() |
#2
aipb20072007-07-04 22:28
|
a if(0)
cout << "0 is true.";
else
cout << "0 is false.";
cout << endle
b if(1)
cout << "1 is true.";
else
cout << "1 is false.";
cout << endle
c if(-1)
cout << "-1 is true.";
else
cout << "-1 is false."
cout << endle
请前辈结合这三个代码,帮我这个新手解释下布尔和普通数字的区别啊。谢谢!