在Keil和IAR中都可以使用printf函数,但两者设置的方法不一样。以下分别是IAR和Keil的设置。下面是Keil的设置。选中Options--->Target--->Code Generation--->Use MicroLIB。
分类:
其他好文 时间:
2014-12-23 17:10:11
阅读次数:
539
<?xml?version="1.0"?encoding="UTF8"?>
<project?name="buildJar"?default="jar"?basedir=".">
<!--删除之前生成的jar包-->
<target?name="clean">
<delete?dir="${basedir}/build"/>
<delete?dir...
分类:
编程语言 时间:
2014-12-23 14:04:03
阅读次数:
200
Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity ...
分类:
其他好文 时间:
2014-12-23 13:44:37
阅读次数:
108
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-12-23 01:33:48
阅读次数:
279
无标题文档function getstyle(obj,attr){ return obj.currentStyle?obj.currentStyle[attr]:getComputedStyle(obj)[attr];}function domove (obj,attr,dir,target,...
分类:
其他好文 时间:
2014-12-23 00:03:34
阅读次数:
207
问题描述:
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in
C where the candidate numbers sums to T.
Each number in C may only be used once in the c...
分类:
其他好文 时间:
2014-12-22 22:55:09
阅读次数:
218
问题描述:
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in
C where the candidate numbers sums to T.
The same repeated number may be chosen from
C unlim...
分类:
其他好文 时间:
2014-12-22 21:19:26
阅读次数:
172
倒计时在viewDidLoad里写个定时器 [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];然后声明定时器的方...
分类:
移动开发 时间:
2014-12-22 21:17:32
阅读次数:
234
function getstyle(obj,attr){ return obj.currentStyle?obj.currentStyle[attr]:getComputedStyle(obj)[attr];}/*function domove (obj,attr,dir,target,end...
分类:
其他好文 时间:
2014-12-22 21:04:47
阅读次数:
136
接修复损坏的gzip压缩文件之原理篇,再次引用GZIP结构图:在上一篇中已知,修复一个损坏的gzip文件的关键环节在于找到下一个正常压缩包的起始点。根据结构图中的信息可知,每个压缩包的开始结构中有是否到达尾部标志、使用的哈夫曼树类型、以及3个哈夫曼树的树元素个数等。如果..
分类:
其他好文 时间:
2014-12-22 19:52:13
阅读次数:
1118