例一:在网站要目录下添加ValidateCode.aspx,路径自己定。ValidateCode.aspx:ValidateCode.aspx.cs:using
System;using System.Collections.Generic;using System.Web;using System...
分类:
其他好文 时间:
2014-05-27 01:03:47
阅读次数:
430
std::fill 在[first, last)范围内填充值#include #include
#include int main(){ std::vector v; v.resize(10); std::fill(v.begin(), v.end(),
100); retu...
分类:
编程语言 时间:
2014-05-24 05:15:36
阅读次数:
320
1.
错误:找不到方法:“System.Collections.Generic.Dictionary`2
System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords()”。解决方法:在web.config中删除:
分类:
Web程序 时间:
2014-05-24 01:34:56
阅读次数:
1583
MSS(Array[],N)//Where N is the number of
elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start
of the subsequenceseq-end=0;...
分类:
其他好文 时间:
2014-05-23 11:03:58
阅读次数:
221
using System;using
System.Collections.Generic;using System.IO;using System.Linq;using
System.Reflection;using System.Runtime.InteropServices;namespace...
分类:
其他好文 时间:
2014-05-23 10:59:24
阅读次数:
223
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading;//using
System.Threading.Tasks;using System.I...
分类:
编程语言 时间:
2014-05-19 20:01:31
阅读次数:
258
Binary Tree Level Order Traversal
Total Accepted: 12441 Total
Submissions: 40879My Submissions
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:
其他好文 时间:
2014-05-18 10:11:13
阅读次数:
337
题目:给定一个数组,以及一个 target 值,target 表示目标和,要求在数组中找到两个数,xi,xj,使得 xi + xj = target。返回值是找到的两个数的下标索引,升序排序。假定至少存在一对解。
分析:对于要处理数组的问题,我们的理想状态都是给定的数组是有序的就好了,在有序后,我们就可以首位各放一个标记。类似于二分查找。
vector twoSum(vector &n...
分类:
其他好文 时间:
2014-05-18 08:04:03
阅读次数:
234
公司的apc smart UPS安装有管理卡(似乎是AP-9631),服务器环境有FreeBSD、Windows Server、Linux(CentOS、Ubuntu)
实际使用中有如下问题需要注意:
1、一旦安装有管理卡,UPS上自带的串口是不能再使用的
2、因为是smart UPS,apcupsd在关闭服务器之后会调用重启ups指令,这就会有如下一些问题
a、如果apcups...
分类:
其他好文 时间:
2014-05-18 06:43:01
阅读次数:
277
对于本题,想到一个中序遍历后,判别是否为回文串的方法,却WA多次
class Solution {
public:
vector vectorValue;
void inOrder(TreeNode* root)
{
if(root!=NULL)
{
inOrder(root->left);...
分类:
其他好文 时间:
2014-05-18 06:38:58
阅读次数:
294