上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: #include "stdafx.h" void insertSort(int* array,int len ) { // [0,i-1] [i,n-1] // 直接插入排序: [0,i-1]是已排序的序列 [i,n-1]是没有排序的序列 // 算法的核心思想:在已排序序列的[0,i-1]找到合适的位置插入当前要排序的元素i。 // 分两种情形: ... 阅读全文
posted @ 2017-04-25 05:07 未命名blogs 阅读(115) 评论(0) 推荐(0) 编辑
摘要: // SelectSort.cpp : Defines the entry point for the console application. // #include "stdafx.h" int sort(int* p,int len ) { int index,temp,i,j; if( p == NULL || len <= 1 ) { r... 阅读全文
posted @ 2017-04-23 10:38 未命名blogs 阅读(103) 评论(0) 推荐(0) 编辑
摘要: int bubbleSort1(int* array,int len ) { int i ,j,temp; i = j = temp = 0; for( i = 0; i i;j-- ) { if( array[j-1] > array[j] ) { temp = ... 阅读全文
posted @ 2017-04-21 18:07 未命名blogs 阅读(528) 评论(0) 推荐(0) 编辑
摘要: // GNRMC_Analysis.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include <string.h>#include <stdlib.h> #include <std 阅读全文
posted @ 2017-04-21 05:41 未命名blogs 阅读(11918) 评论(0) 推荐(0) 编辑
摘要: Efficient Memory Safety for TinyOS: http://www.cs.utah.edu/~coop/me/pubs/sensys07.htm Safe TinyOS 原文:http://tinyos.stanford.edu/tinyos-wiki/index.php/ 阅读全文
posted @ 2017-04-10 10:00 未命名blogs 阅读(214) 评论(0) 推荐(0) 编辑
摘要: CC2538 Bootloader Backdoor http://www.ti.com/lit/ug/swru333a/swru333a.pdf http://files.cnblogs.com/files/tinyos/CC2538_ROM.pdf gnu-ld链接脚本浅析 http://fil 阅读全文
posted @ 2017-04-08 12:00 未命名blogs 阅读(284) 评论(0) 推荐(0) 编辑
摘要: blip UDP开发流程: 1)IPV6地址FF02::1 是本地链路范围内的全节点组播组。所有支持 IPv6 的接口将接收和处理具有此目的地址的数据包。支持 IPv6 的设备发送一个目的地址为 FF02::1 的数据包,本地链路上支持IPV6的所有节点都会收到。 2)blip UDP开发 inte 阅读全文
posted @ 2017-03-20 15:07 未命名blogs 阅读(252) 评论(0) 推荐(0) 编辑
摘要: // 顶层配件为空configuration BlinkAppC{} implementation{ // 因为使用MainC中导出的Boot接口 components MainC; components BlinkM as App,LedsC; // tos\system\TimerMilliC. 阅读全文
posted @ 2017-03-15 23:47 未命名blogs 阅读(223) 评论(0) 推荐(0) 编辑
摘要: user@XubunTOS:~/.local/share/Trash/files$ pwd/home/user/.local/share/Trash/filesuser@XubunTOS:~/.local/share/Trash/files$ 阅读全文
posted @ 2017-03-15 23:26 未命名blogs 阅读(353) 评论(0) 推荐(0) 编辑
摘要: // tos启动时点亮Led module PowerupC @safe(){ // 使用Boot接口,Boot接口中只有一个事件booted,模块使用接口时,要实现接口中的事件 // 根据提供接口要实现接口中的命令 uses interface Boot; // Leds也只是接口而已 uses 阅读全文
posted @ 2017-03-15 22:34 未命名blogs 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页