11.1.1:有根树转无根树
#include
#include
#include
#include
#define maxn 1000
using namespace std;
vector G[maxn];
int p[maxn];
void read_tree()
{
int n,u,v;
scanf("%d",&n);
for(int i=0;i<n;i++...
分类:
其他好文 时间:
2014-09-17 13:40:02
阅读次数:
192
Linux最优秀的地方之一,就在于它的多用户、多任务环境。为了让用户具有较安全的管理机制,文件的权限管理是很重要的。Linux通常将文件的访问方式分为分为三个类别,分别是owner/group/other,而且具有read/write/excute等权限。在Linux下面这么多的目录/文件,到底.....
分类:
系统相关 时间:
2014-09-17 11:53:22
阅读次数:
333
依靠数据默认的机制:Hibernate的加锁模式有:Ø LockMode.NONE : 无锁机制。Ø LockMode.WRITE :Hibernate在Insert和Update记录的时候会自动获取。Ø LockMode.READ : Hibernate在读取记录的时候会自动获取。以上这三种锁机制...
分类:
系统相关 时间:
2014-09-17 07:50:01
阅读次数:
206
[root@vapp0301~]#catpull_log.sh#!/bin/bash#date=2014-09-16#istopulltheapplogecho-ne"\033[31m\033[05mthetimeformatoftheriskandbpis%Y-%m-%d%H:%M:%S.theposis%H:%M:%S\033[0m"read-p"pleaseinputyourapp":APPread-p"pleaseinputyourtimeinterval":TIME1read-p"pleaseinp..
分类:
其他好文 时间:
2014-09-16 16:06:40
阅读次数:
189
1- Read the usage policy of the website. I know this is the third time I mention that, but that tells you its important :)2- Always try to use the mob...
分类:
其他好文 时间:
2014-09-16 09:11:30
阅读次数:
189
[root@testdb11a ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory.Adding read,write permissions for group.Removin...
分类:
数据库 时间:
2014-09-16 00:16:39
阅读次数:
376
oracle 利用flashback将备库激活为read wirte(10g 及上)环境:OS: CENTOS 6.5 X64DB: ORACLE 10.2.0.5主库操作:SQL> alter system switch logfile;System altered.SQL> 备库操作取消归档应用...
分类:
数据库 时间:
2014-09-16 00:04:29
阅读次数:
404
[centos@lob1scripts]$vish03.sh#!/bin/bash#Program#Thisprogramshows"HelloWorld!"inyourscreen.#History#2014/09/15lobsMonreleasePATH=/bin:/sbin:/usr/bin:usr/sbin:/usr/local/bin:usr/local/sbin:~binexport=PATHecho-e"Iwilluse‘touch‘commandtocreate3files."read-p"P..
分类:
其他好文 时间:
2014-09-15 19:47:30
阅读次数:
277
一、问题描述Mysql主从复制模式中,slave上报错“relaylogreadfailure”,导致主从同步停止。mysql>showslavestatus\G***************************1.row***************************Slave_IO_State:Master_Host:10.0.0.93Master_User:slaveuserMaster_Port:3306Connect_Retr..
分类:
数据库 时间:
2014-09-15 19:42:59
阅读次数:
269
(一) 导出scott用户下的emp表到xx用户下1.1 创建DIRECTORY,用sys用户创建create directory DATA_PUMP_DIR as 'D:\dir_dp';1.2 在该目录上对scott用户授读写权限Grant read,write on directory DAT...
分类:
其他好文 时间:
2014-09-15 19:08:49
阅读次数:
284