本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Symmetric Tree
Total Accepted: 13991 Total
Submissions: 44240
Given a binary tree, check whether it is a mirror of itself ...
分类:
其他好文 时间:
2014-05-14 00:52:07
阅读次数:
372
asp.net 实现“九连环”小游戏
wildcatsky(原作)
public Class ChinaRing1
Inherits System.Web.UI.Page
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
Private Sub InitializeComponent()
End Sub
Protected Wi...
分类:
Web程序 时间:
2014-05-14 00:30:45
阅读次数:
390
#include
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-14 00:18:31
阅读次数:
367
有些人反对使用 Cacls,请使用 Icacls。
显示或者修改文件的访问控制列表(ACL)
CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]
[/R user [...]] [/P user:perm [...]] [/D user [...]]
file...
分类:
其他好文 时间:
2014-05-14 00:15:24
阅读次数:
3147
Person's solution 是用来一种基于软件的解决关键区域问题的算法(critical-section).
它并非完美的,有可能不正确地工作。而且是限制解决两个进程同步的问题。
但是它很简单,很原始,学习起来也是很轻松的。
代码如下:
do {
flag[i] = true;
turn = j;
while (flag[j] && turn == j...
分类:
编程语言 时间:
2014-05-13 08:01:01
阅读次数:
407
1. 下面的代码运行后,将输出什么结果? String s1 = new String("Test"); String s2 = new String("Test"); if (s1==s2)
System.out.println("Same"); if (s1.equals(s2))
System.out.println("Equals");
A. Same...
分类:
编程语言 时间:
2014-05-13 07:42:26
阅读次数:
306
#!/bin/bash
if [ $# -ne 2 -a $# -ne 1 ] ;then
echo "usage: `basename $0 ` [n] input file "
echo
exit
fi
if [ $# -eq 1 ];then
I_TOP=10
I_FILE=$1
fi...
分类:
系统相关 时间:
2014-05-13 06:21:24
阅读次数:
454
著名开源软件网站(www.sourceforge.net)上面的开源项目,大部分使用的管理工具为cvs或svn。这两种软件的代表客户端程序是wincvs和tortoiseSVN。1.cvsCVS
(Concurrent Versions System) is a tool used by many ...
分类:
其他好文 时间:
2014-05-12 21:19:17
阅读次数:
371
--Linux操作系统位数查看----------------------2014/05/11查看linux是多少位的几位方法:查看linux机器是32位还是64位的方法:方法一:file
/sbin/init 或者 file /bin/ls结果如下:/sbin/init: ELF 64-bit L...
分类:
系统相关 时间:
2014-05-12 20:03:41
阅读次数:
504
1,由于是基于图形界面来生成ks自动安装脚本,所有图形生成ks脚本的服务器首先需要的就是有X
Window System;要是虚机的可以配个tigervnc-servere来进行操作不说了直接上命令,你copy
command到你的terminal执行即可;yum install system-co...
分类:
其他好文 时间:
2014-05-12 19:28:49
阅读次数:
398