随笔分类 -  程序设计

1 2 3 4 5 ··· 7 下一页
摘要:#include <stdio.h> #include <stdlib.h> /* control/header */ static struct uvcg_control_header_grp { //struct config_group group; int length; int bcdUV 阅读全文
posted @ 2021-01-05 00:54 卷哭你 阅读(220) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <string.h> int main() { //memmove:copy memory area //voidmemmove(voiddest,const voidsrc,size_t n); chars = "memmove"; char 阅读全文
posted @ 2020-12-14 19:50 卷哭你 阅读(198) 评论(0) 推荐(0)
摘要://打印调用函数名和行号printf("%s, %d\n", __func__, __LINE__); 阅读全文
posted @ 2020-12-14 13:37 卷哭你 阅读(653) 评论(0) 推荐(0)
摘要:(1) typeof 不是 typedef (2) #include <stdio.h>#include <stdint.h>#include <stdbool.h> #define clamp(val,min,max) ( { \ typeof(val) __val = (val); \ type 阅读全文
posted @ 2020-11-11 11:31 卷哭你 阅读(208) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-10-21 08:04 卷哭你 阅读(527) 评论(0) 推荐(0)
摘要:指针使用:(1)操作单个地址 修改单个值 (2) 得到某一一串的连续首地址,遍历访问想要地址,然后操作地址,修改某个值 比如二级指针存储多个一级指针的首地址 一级指针存取 多个变量首地址 经常配合使用 ARRAY_SIZE宏 #include <stdio.h> #include <stdlib.h 阅读全文
posted @ 2020-10-21 07:47 卷哭你 阅读(365) 评论(1) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-10-17 08:08 卷哭你 阅读(197) 评论(0) 推荐(0)
摘要:#include<stdio.h> const char*name = "hello audio"; char*usb_name = "ac usb string descriptor"; int main() { name = usb_name; // name[0] = 'a'; printf( 阅读全文
posted @ 2020-10-13 22:32 卷哭你 阅读(1376) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-05 10:52 卷哭你 阅读(2) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-10-04 17:19 卷哭你 阅读(142) 评论(0) 推荐(0)
摘要:信息的存取一般以字节为单位。实际上,有时存储一个信息不必用一个或多个字节,例如,“真”或“假”用0或1表示,只需1位即可。 在计算机用于过程控制、参数检测或数据通信领域时,控制信息往往只占一个字节中的一个或几个二进制位,常常在一个字节中放几个信息 #include <stdio.h>#include 阅读全文
posted @ 2020-10-03 20:41 卷哭你 阅读(205) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-26 11:08 卷哭你 阅读(160) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-25 07:54 卷哭你 阅读(385) 评论(0) 推荐(0)
摘要:#include "main.h" #include <stdio.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <signal.h> #include <stri 阅读全文
posted @ 2020-09-22 10:41 卷哭你 阅读(285) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-22 07:39 卷哭你 阅读(343) 评论(0) 推荐(0)
摘要:#include "main.h" #include <stdio.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <signal.h> #include <stri 阅读全文
posted @ 2020-09-21 09:51 卷哭你 阅读(326) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-21 08:01 卷哭你 阅读(374) 评论(0) 推荐(0)
摘要:(1)尾巴递归,什么时候递归结束.实现想要的递归终止条件. (2)如何递归和返回想要的值 相加还是相减 return xx*xx; (3)递归函数的编写和递归调用和功能需求. #include <stdio.h> #include <stdlib.h> #include <limits.h> #in 阅读全文
posted @ 2020-09-20 22:03 卷哭你 阅读(470) 评论(0) 推荐(0)
摘要:#include "main.h" #include <stdio.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <signal.h> #include <stri 阅读全文
posted @ 2020-09-19 14:38 卷哭你 阅读(578) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-19 08:49 卷哭你 阅读(1795) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页