摘要: 今天某个公司面试,尽管报了个测试类的,但是面试依旧不给力,先是写个字符串比较函数,只判断相等和不相等的情况,当时大概这么写的:#include<stdio.h>bool strCompare(char *str1,char *str2){ char *s1=str1,*s2=str2; printf("%c and %c\n",*s1,*s2); while(s1&&s2){ if(*s1!=*s2){ printf("%c and %c\n",*s1,*s2);//调试专用 printf("test\n" 阅读全文
posted @ 2011-10-12 00:42 Dont 阅读(484) 评论(3) 推荐(0) 编辑