1,项目属性选择Unicode;2,添加#include
;3,所有的""转换成_T("");4,看具体代码:for( std::vector::iterator
iterator=service.m_tDeviceList.begin(); iterator!=serv...
分类:
其他好文 时间:
2014-05-26 23:41:29
阅读次数:
522
#includeusing namespace std;int begin[9][9];bool
check(int x,int y,int k){ for(int i=0;i>t; while(t--) { for(int
i=0;i>begin[i][j]; ...
分类:
其他好文 时间:
2014-05-26 21:05:25
阅读次数:
189
基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end,
递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end
的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
分类:
其他好文 时间:
2014-05-26 12:12:49
阅读次数:
257
GridView中Dataformatstring
格式化日期应注意的问题1、HtmlEncode="False"2、DataFormatString="{0:d}"C#格式化日期时间DateTime dt =
DateTime.Now;Label1.Text = dt.ToString();//2...
分类:
其他好文 时间:
2014-05-26 11:47:35
阅读次数:
212
IDE->工具->选项-》click "suspend now" button
分类:
其他好文 时间:
2014-05-26 10:27:25
阅读次数:
891
一. PL/SQL 与 SQL的交互1. 使用select语句.into是必须的,
查询只能返回一条或0条数据 declare v_fname employees.first_name%TYPE; --更正规的写法 --v_fname
varchar2(25); begin select first...
分类:
数据库 时间:
2014-05-26 09:59:44
阅读次数:
334
linux中用shell获取昨天、明天或多天前的日期:在Linux中对man date -d
参数说的比较模糊,以下举例进一步说明:# -d, --date=STRING display time described by STRING, not
`now’[root@Gman root]# dat...
分类:
系统相关 时间:
2014-05-26 09:42:15
阅读次数:
320
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.
Now you are suggested to solve the f...
分类:
其他好文 时间:
2014-05-24 21:52:34
阅读次数:
320
用Sublime Text 2自己打开自己的二进制文件:Sublime Text
2/Contents/MacOS/Sublime Text 2搜索所有3342 3032都替换成3242
3032保存后退出重新运行,输入任意注册码注册即可注册码样本:—–BEGIN LICENSE—–hiwanzUn...
分类:
其他好文 时间:
2014-05-24 07:50:29
阅读次数:
294
这几个题很典型也是国外一些知名公司经常会问到的题
3Sum:
排序,避免重复,时间复杂度O(n^2)
class Solution {
public:
vector > threeSum(vector &num) {
int len=num.size();
sort(num.begin(),num.begin()+len);...
分类:
其他好文 时间:
2014-05-22 17:25:02
阅读次数:
259