HEX文件格式不赘述,写里直接放上代码。请批评改正。 1 %%convert a sinal data into hex file format 2 % data format:16bit 3 % signal length: less than 2^24-1 4 % author: Yang L....
分类:
其他好文 时间:
2015-01-30 17:25:23
阅读次数:
261
假定创建了XmlWriter的实例变量xmlWriter,下文中将使用此实例变量写Xml1.如何使用XmlWriter写Xml文档声明?// WriteStartDocument方法可以接受一个bool参数(表示standalone,是否为独立文档)或者不指定参数standalone保持默认值xml...
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
请参考上一篇博文:http://blog.csdn.net/chenxun_2010/article/details/43274049roman to int:
class...
分类:
其他好文 时间:
2015-01-30 16:11:05
阅读次数:
116
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
解题思路:采用中序排列的方法递归地决定每个结点的数值;
#include
#include
#include
using namespace std;
//Definition...
分类:
其他好文 时间:
2015-01-30 16:00:24
阅读次数:
131
问题是这样子的:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see...
分类:
其他好文 时间:
2015-01-30 15:08:07
阅读次数:
163
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-01-30 14:37:44
阅读次数:
127
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
这题的做法和前面一体interger to roman 类似 建一个dictionary 去查询。
1.先把string 反转
2. 用一个last去保存上一次的di...
分类:
编程语言 时间:
2015-01-30 10:53:17
阅读次数:
293
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
建两个list依次match 罗马数字。 比较特殊的是 一些有两位的罗马数字。
来自http://www.cnblogs.com/zuoyuan/p/377958...
分类:
编程语言 时间:
2015-01-30 10:51:44
阅读次数:
190
原题地址对于已排序数组,二分法递归构造BST代码: 1 TreeNode *buildBST(vector &num, int i, int j) { 2 if (i > j) 3 return NULL; 4 5 int m = (i + j) /2; 6 T...
分类:
其他好文 时间:
2015-01-30 10:26:25
阅读次数:
158
int 转换 string转换有两种:一种是隐式,int a = 2; string b = a.ToString();一种是显示。sting b=Convert.ToString();