Given an array of integers, every element appears twice except for one. Find that single one....
分类:
其他好文 时间:
2014-05-15 07:20:39
阅读次数:
264
准备研究一下vmp 保护,从一个最简单的Windows程序入手似乎是个不错的想法。
怎样才最简单呢,只有一个MessageBox 调用好了。
弹出消息,退出,哦也,够简单吧。
祭出法器VC2010,新建win32 项目,
#include "stdafx.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
...
解决办法:
如果是采用流的方式一行一行写到文件中,可以把FileWriter换为PrintWriter,然后调用PrintWriter的println()方法。
byte fileContent[] = getJTextArea().getText().replaceAll("\n", "\r\n").getBytes();//此处主要是为了在Windows中实现换行操...
分类:
其他好文 时间:
2014-05-15 06:12:57
阅读次数:
244
很多人都在羡慕别人有华丽丽的窗体背景色,为什么自己不能有一个?对!我们也可以有!下面给大家介绍如何修改自己窗体的背景色。
第一步:桌面右键,点击“个性化”
第二步:进入“个性化”以后,点击“窗口颜色”
第三步,进入“窗口颜色”以后,单击“高级外观设置”
第四步:单击“复选框”,选择“窗口”
第五步:选择右边上面那个颜色板,如果想要更多颜色,点击“其...
装了Windows 8.1与Ubuntu双系统后,在Ubuntu系统下想进入Windows的某个NTFS分区,点击时却出现下面错误:Error mounting /dev/sda2 at /media/love/Mis Archiivos...
分类:
Windows程序 时间:
2014-05-15 05:29:20
阅读次数:
1433
题目
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
解答
本题考察进位问题,注...
分类:
其他好文 时间:
2014-05-15 04:16:56
阅读次数:
245
【题目】
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
【题意】
题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解
【思路】
原字符串用特殊字符#间隔,如下所示:
#a...
分类:
其他好文 时间:
2014-05-15 03:31:25
阅读次数:
299
链接: http://soj.me/1732
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description:
Alice is a beautiful and clever girl. Bob would like to play with Alice.
One day, Alice got a very ...
分类:
其他好文 时间:
2014-05-15 03:20:59
阅读次数:
383
背景新年伊始,本人的开发环境由Windows Server 2003 +IIS 6 升级成了
Windows Server 2008 +IIS
7,之后便着手参加新项目的开发。项目开发后期测试过程中,发现了这么一个问题,那就是使用Intelligencia.UrlRewriter做伪静态的时候,AS...
分类:
其他好文 时间:
2014-05-14 11:43:34
阅读次数:
314
《批处理在提高Windows管理效率中神奇应用》学习::1.3::echo.
显示空行::数值范围循环的for循环@echo offecho Creating file0.txt ~ file99.txtecho.echo.:: for
/l %%n in (0,1,99) /l表示for语句在指定...