- 博客(4)
- 收藏
- 关注
原创 libjpeg库的安装、移植、交叉编译环境、编解码。
#include #include #include #include #include int mkjpeg(unsigned int width,unsigned int height,unsigned char *buffer,char *filename); int main() { struct jpeg
2017-07-14 21:54:12 1659
原创 C、C++指针、数组和内存分配
指针表示的是变量的地址与值的关系:指针的定义:int *p;//指向整型变量的指针;struct POINT{int x,y} POINT *P;typedef int * PINT; //使用PINT代替int *PINT p,q; //定义了两个指向整型的指针变量p,q;指针变量指向变量的地址;1.指向变量的指针int *p; p = &n; 等同于
2017-07-01 19:01:06 436
原创 结构体指针的常规用法
指针使用方法:1. struct data(){int mouth;int day;int year;}struct data *p = &myday;使用指针:(*p).mouth = 21;p->mouth = 21;对应地址指向的指针为:&(p->mouth);函数中使用结构体指针作为参数:一下void
2017-04-25 15:58:50 551
原创 嵌入式Linux系统 “内核定时器”
Linux 下的内核定时器:类似单片机中的定时器中断1.涉及函数1. 初始化定时器队列结构 init_timer(&buttons_timer);//2. 定时器超时函数 buttons_timer.function = buttons_timer_function; //3.或者初始化定时器和超时函数作为一步(data作为fn的参数) setup_timer(time
2017-04-24 20:06:57 778
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人