摘要: 鉴于以前碰到过很多这样的题目,甚至上次月考核也考了,马上就要考试了,就再重新写一遍,加深印象,但是肯定和库函数有区别,丢失许多细节 1.strlen函数(求字符串长度) int strlen(char *str) { int cnt = 0; while(*str != '\0') { cnt++; 阅读全文
posted @ 2019-03-08 17:14 sparkyen 阅读(328) 评论(0) 推荐(0) 编辑
摘要: It is a little known fact that cows love apples. Farmer John has two apple trees (which are conveniently numbered 1 and 2) in his field, each full of 阅读全文
posted @ 2019-03-08 15:45 sparkyen 阅读(251) 评论(0) 推荐(0) 编辑