字符串比较必须使用strcmp
摘要:
char s1[]="this"char *s2 = "this"if(s1=="this"){ printf("s1 is equal to 'this' \n"); }if(s2=="this"){ printf("s2 is equal to 'this'\n");}注意,不会输出"... 阅读全文
posted @ 2015-12-05 13:36 jxzheng 阅读(266) 评论(0) 推荐(0) 编辑