- 博客(7)
- 资源 (12)
- 问答 (1)
- 收藏
- 关注
原创 简单理解动态内存分配和静态内存分配的区别
在涉及到内存分配时,我们一般都要考虑到两种内存分配方式,一种是动态内存分配,另一种是静态内存分配,我们该怎么理解这两者的区别呢?在我看来,静态内存分配和动态内存分配比较典型的例子就是数组和链表,数组的长度是预先定义好的,在整个程序中是固定不变的,所以他在内存分配时是以静态内存分配的方式进行的。而链表,它的信息有可能会随时更改,内存的分配取决于我们实际输入的数据,这样就用到了动态内存分配的方式。
2015-06-22 13:38:22 5325
原创 递归函数的经典例子(汉诺塔问题)
#includevoid HN(int n,char a,char b,char c);int main(int argc,char *argv[]){ int Dish_num; printf("Please Input the Dish num: "); scanf("%d",&Dish_num); while(Dish_num != 0){ printf(
2015-06-22 13:36:37 2338
原创 搭建andriod开发环境
作为一名之前从未接触过andriod的菜鸟级人物,我之所以用andriod是因为要做的毕业设计里面需要做一个APP,但是在我开始我的APP之前,我遇到的最大的问题就是怎么搭建andriod这个开发环境,我在网上查了大量的资料,怎奈各种尝试的结果是很痛苦,当然这里面肯定有我的因素存在。 第一步,和搭建JAVA开发环境一样,自己下载安装个JDK,我的是没有设置环境变量,我估计现在JDK
2015-06-22 13:33:41 754
原创 判断回文,位与,位或
//判断字符串是否是回文?int fun(char *sre){char *s1,*s2;s1 = str;s2=str+strlen(str)-1;if(strlen(str)%2 != 0){return 0;}while(s1{if(*s1==*s2){s1++;s2--;
2015-06-22 13:31:16 727
原创 Cortex-A8嵌入式开发板平台搭建
1 构建嵌入式开发平台1.嵌入式linux 软件系统由bootloader、kernel、root filesystem 构成,如下:Bootloader(一次固化) + 内核(多次更新) + 根文件系统制作2.资料拷贝:资料存放路径(24 机)如下:2.6.35.7_tools将上面路径下用到的文件拷到自己虚拟机中,存放在自建目录下:例如(推荐):/home/edu/
2015-06-22 13:26:25 3625
原创 Qt一个错误的解决方法
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/qt_cortex-a8_4.3.2/mkspecs/qws/linux-arm-g++ -I. -I/usr/
2015-06-22 13:21:44 6000
原创 配置编译环境
在我们工作中,经常会遇到需要搭建编译环境的事情,本身这是一件很简单的事情,但是在实际的操作中却会遇到很多的问题,比如说环境搭建好了,却不能起作用,或者提示缺少了什么动态库;搭建环境需要注意的地方:1. 一般搭建编译环境都是解压某以特定的工具包,我习惯上把着这些工具包放置在/opt目录下,然后tar -zxvf ***.tar.gz ./然后查找这些文件下的bin文件,将这些
2015-06-11 06:41:29 1364
CoAP_rfc7252.pdf
2020-12-04
openocd-2020-12-23.pdf
2020-11-24
_install.tar.gz
2020-07-08
busybox-1.31.0.tar.bz2
2020-07-08
Real-Time Embedded Multithreading--Using ThreadX.7z
2019-08-20
简明 Python 教程_cn_en
2018-09-04
Inside the C++ Object Model_english&chinese;
2018-07-27
See mips run
2018-03-17
nand操作时page_size = 2048;
2014-11-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人