xxxxx
daxi1987
全部博文(41)
2012年(2)
2011年(2)
2010年(3)
2009年(26)
2008年(8)
xgmiao
浪花小雨
blockgol
zj475967
cris_aut
ydong08
三角湖的
wjjLinux
L_502091
愚人陈
分类: C/C++
2009-08-20 22:01:00
#include <iostream> using namespace std; int main() { char a = '0'; char b = '\0';//等价于char b = 0; cout << a << "," << b << "," << boolalpha << (a==b) << endl;
#include <iostream> using namespace std; int main() { char a = '0'; char b = '\0';
//等价于char b = 0;
cout << a << "," << b << "," << boolalpha << (a==b) << endl;
//输出:0, ,false int i = 0; int j = '\0'; cout << i << "," << j << "," << boolalpha << (i==j) << endl;
//输出:0,0,true return 0; }
上一篇:2008年Dian团队个人小结
下一篇:字符匹配——strtok
登录 注册