上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: (1)脚本配置ecosconfig new pccdl_component CYG_HAL_STARTUP { # Flavor: data # No user value, uncomment the following line to provide one. user_va... 阅读全文
posted @ 2014-07-09 16:43 galoishelley 阅读(392) 评论(0) 推荐(0)
摘要: 基于VMware的ecos,redboot及hello world(1)安装请参照[【ecos学习2】wmware运行redboot[方法二]--图形实现配置 ](2)修改内存布局文件:~/i386/ecos-3.0$ find . -name "mlt_i386_pc_floppy.ldi"./p... 阅读全文
posted @ 2014-07-09 16:28 galoishelley 阅读(574) 评论(0) 推荐(0)
摘要: #!/sh/bin.SUFFIXES:.c.oCDIR = /Users/shelley/cBINDIR = $(CDIR)/binCC = gccCFLAGS = -g -ORM = rm -fgetoptOBJ = getopt.ogetopt:$(getoptOBJ) $(CC) $(C... 阅读全文
posted @ 2014-07-03 09:46 galoishelley 阅读(753) 评论(0) 推荐(0)
摘要: http://www.blogjava.net/canvas/articles/quick_makefile.htmlhttp://www.cnblogs.com/azraelly/archive/2012/12/23/2830096.html 阅读全文
posted @ 2014-07-02 16:37 galoishelley 阅读(150) 评论(0) 推荐(0)
摘要: 自动化变量,就是这种变量会把模式中所定义的一系列的文件自动地挨个取出,直至所有的符合模式的文件都取完了。这种自动化变量只应出现在规则的命令中。下面是所有的自动化变量及其说明:$@表示规则中的目标文件集。在模式规则中,如果有多个目标,那么,"$@"就是匹配于目标中模式定义的集合。$%仅当目标是函数库文... 阅读全文
posted @ 2014-07-02 15:14 galoishelley 阅读(329) 评论(0) 推荐(0)
摘要: getopt被用来解析命令行选项参数。#include extern char *optarg; //选项的参数指针extern int optind, //下一次调用getopt的时,从optind存储的位置处重新开始检查选项。 extern int opterr, //当opterr=0... 阅读全文
posted @ 2014-07-02 15:02 galoishelley 阅读(772) 评论(0) 推荐(0)
摘要: getopt(分析命令行参数)相关函数表头文件 #include定义函数 int getopt(int argc,char * const argv[ ],const char * optstring);函数说明getopt()用来分析命令行参数。参数argc和argv是由main()传递的参数个数... 阅读全文
posted @ 2014-07-01 16:40 galoishelley 阅读(259) 评论(0) 推荐(0)
摘要: 【程序1】题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?1.程序分析: 兔子的规律为数列1,1,2,3,5,8,13,21....【程序2】题目:判断101-200之间有多少个素数,并输出所有素数。... 阅读全文
posted @ 2014-06-24 15:12 galoishelley 阅读(678) 评论(0) 推荐(0)
摘要: 正则表达式是一种通用的标准,大部分计算机语言都支持正则表达式,包括as3,这里转摘出了一些常用的正则表达式语句,大家用到的时候就不用自己写了^/d+$ //匹配非负整数(正整数 + 0) ^[0-9]*[1-9][0-9]*$ //匹配正整数 ^((-/d+)|(0+))$ //匹配非正整数(... 阅读全文
posted @ 2014-06-24 15:08 galoishelley 阅读(179) 评论(0) 推荐(0)
摘要: 1- 字典-内置数据结构,数据值与键值关联键-字典中查找部分值-字典中数据部分使用dict()工厂函数或者只用{}可以创建一个空字典>>> list = {}>>> list['name']='hello'>>> list['pwd']='world'>>> list['name']'hello'>... 阅读全文
posted @ 2014-06-19 15:09 galoishelley 阅读(246) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页