- 博客(6)
- 收藏
- 关注
原创 不用for和while从任意字符串中找出第一个仅出现一次的字符
#include bool find(const char & ch, char *arr, const int & size, const int & forbid) { if(size == 0) return false; if(size == forbid) { return find(ch, arr + 1, size - 1, forbid)
2014-05-14 22:21:04 349
原创 Fibonacci数列的矩阵运算
a # include typedef long long LL; typedef struct VALUEPAIR { LL PreviousVal; LL PresentVal; VALUEPAIR(const LL & x1, const LL & x2) { PreviousVal =
2014-04-16 21:36:48 585
原创 memcpy函数的实现和解析
实现如下 #include #include //这里为什么要返回void *, 考虑下连续调用 void * memcpy(void *dst, const void *src, size_t size) { const register char *s = static_cast(src); register char *e = static_cast
2014-04-16 21:14:27 463
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人