![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 66
Joenjoin
这个作者很懒,什么都没留下…
展开
-
C语言的switch语句跳转问题
【转自http://rednaxelafx.iteye.com/blog/132053】 求下面程序的输出: #include #include void foo(char* a, char* b, int len) { switch (len & 0x7) { default: { while (len > 7) {转载 2012-02-21 13:44:35 · 2591 阅读 · 0 评论 -
setjmp与longjmp
关于C语言的语句跳转,在局部范围内(如同一个函数)可以使用goto语句在栈上跳过若干帧,但是goto语句不能进行跨函数调用。如果要想实现跨函数跳转,就必须要使用setjmp和longjmp组合: #include int setjmp(jmp_buef nv); 返回:若直接调用则为0,若从longjmp返回则为非0 void longjmp(jmp_buef env , i原创 2012-08-28 17:18:45 · 1443 阅读 · 0 评论 -
Building FFmpeg with libmp3lame for Android
The general idea is to create a static lame build (libmp3lame.a) using NDK, and then use it in the configuration and make scripts of ffmpeg, this way ffmpeg will recognize it a valid coder. Its a转载 2012-08-31 17:26:40 · 3391 阅读 · 1 评论 -
C语言的关键字
C89标准32个Keywords auto :声明自动变量 一般不使用 double :声明双精度变量或函数 int: 声明整型变量或函数 struct:声明结构体变量或函数 break:跳出当前循环 else :条件语句否定分支(与 if 连用) long :声明长整型变量或函数 switch :用于开关语句 case:开关语句分支 enum原创 2012-09-26 16:57:21 · 813 阅读 · 0 评论