新手,问布尔值和数值
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
请前辈结合这三个代码,帮我这个新手解释下布尔和普通数字的区别啊。谢谢!