摘要: #include #include #define Num 10int main(){ int c,i,j = 0,m,n = 0,count1 = 0,count2 = 0; char s[Num],t[Num],st[Num],str[Num]; printf("Please ... 阅读全文
posted @ 2014-10-30 23:02 司空格子Ored 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 文章转自: http://liuzhigong.blog.163.com/blog/static/178272375201133104113718/ strcasecmp(忽略大小写比较字符串) 相关函数 bcmp,memcmp,strcmp,strcoll,strncmp 表头文件 #in... 阅读全文
posted @ 2014-10-30 20:45 司空格子Ored 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 文章转自:http://blog.csdn.net/turkeyzhou/article/details/6104135有四种方式:1。使用堆空间,返回申请的堆地址,注意释放2。函数参数传递指针,返回该指针3。返回函数内定义的静态变量(共享)4。返回全局变量******************以下摘... 阅读全文
posted @ 2014-10-30 20:29 司空格子Ored 阅读(315) 评论(0) 推荐(0) 编辑
摘要: #include #define Num 10int atoi(char s[]);int main(){ int c,i = 0; char s[Num]; int result; while((c = getchar()) != EOF && c != '\n' && i... 阅读全文
posted @ 2014-10-30 20:08 司空格子Ored 阅读(509) 评论(0) 推荐(0) 编辑
摘要: #include #include int htoi(char s[]);main(){ char s1[] = "10"; char s2[] = "2D"; char s3[] = "3f"; char s4[] = "0X4F"; char s5[] =... 阅读全文
posted @ 2014-10-30 11:21 司空格子Ored 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 转载自: http://blog.csdn.net/zhuimengzh/article/details/67284921、隐式转换C在以下四种情况下会进行隐式转换: 1、算术运算式中,低类型能够转换为高类型。2、赋值表达式中,右边表达式的值自动隐式转换为左边变量的类型,并赋值给他。3、函数调用中参... 阅读全文
posted @ 2014-10-30 10:32 司空格子Ored 阅读(420) 评论(0) 推荐(0) 编辑
摘要: #include #include #define sta 1500#define Num 1600int main(){ int year; for(year = sta;year #include #define Num 1600int main(){ int c,i = 0;... 阅读全文
posted @ 2014-10-30 09:28 司空格子Ored 阅读(327) 评论(0) 推荐(0) 编辑
摘要: #include #include #define Num 1000int main(){ int i = 0,j = 0,k,count = 0,h = 0,c; char str1[Num],str2[Num],str3[Num]; printf("Please input t... 阅读全文
posted @ 2014-10-30 08:56 司空格子Ored 阅读(219) 评论(0) 推荐(0) 编辑