![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
文章平均质量分 76
fanrwx
这个作者很懒,什么都没留下…
展开
-
typedef 函数指针的用法
typedef 函数指针的用法在网上搜索函数指针,看到一个例子。开始没看懂,想放弃,可是转念一想,这个用法迟早要弄懂的,现在多花点时间看懂它,好过以后碰到了要再花一倍时间来弄懂它。其实很多时候都是这样,如果每次到难一点的内容,总想着下次我再来解决它,那就永远也学不到东西。后面那个例子加了注释,是我对这种用法的理解,希望对新手有所帮助。进入正文: 代码简化, 促进跨平转载 2017-03-22 10:14:09 · 322 阅读 · 0 评论 -
C语言中常见错误
1. Ambiguous operators need parentheses — 不明确的运算需要用括号括起2. Ambiguous symbol 'xxx' — 不明确的符号3. Argument list syntax error — 参数表语法错误4. Array bounds missing — 丢失数组界限符5. Array size toolarge — 数组尺寸太大6. Bad c...转载 2018-03-05 22:16:00 · 589 阅读 · 0 评论 -
常见字符串函数
#include <stdio.h>#include <assert.h>#include <string.h>#include <stdlib.h>// 内存copy函数void *my_memcpy(void *dest, const void *src, int n){ assert((NULL != dest) &...原创 2018-03-05 22:27:55 · 248 阅读 · 0 评论