#include #include using namespace std; struct
BTNode { int v; // default positive Integer. BTNode *pLeft; BTNode *pRight;
BTNode(int x) : v(x), pLeft(...
分类:
其他好文 时间:
2014-07-22 23:00:54
阅读次数:
294
1 #include 2 3 int main(void) 4 { 5 int a,b,c; 6
int temp; 7 printf("please input a b c\n"); 8 scanf("%d %d
%d",&a,&b,&c); 9 10 if(a>b)11 {12 te...
分类:
其他好文 时间:
2014-07-22 23:00:52
阅读次数:
353
string portNo = "1999"; IPAddress ServerIp =
IPAddress.Parse("112.124.46.251"); IPEndPoint iep = new IPEndPoint(ServerIp,
int.Pa...
分类:
其他好文 时间:
2014-07-22 23:00:33
阅读次数:
233
计算闰年的方法:如果某年能被4整除但不能被100整除,或者该年能被400整除则为闰年。(year%4==0&&year%100!=0)||year%400==0
1 #include 2 3 int main(void) 4 { 5 int year; 6 printf("please in...
分类:
其他好文 时间:
2014-07-22 23:00:32
阅读次数:
247
本实例:输入一个32位二进制的数,每隔八位分开将其转换为十进制以IP格式输出。 1
#include 2 /* 3 以IP地址形式输出 4 */ 5 int main(void) 6 { 7 int i; 8 int ip[4]={0}; 9
char a[33];...
分类:
其他好文 时间:
2014-05-01 22:19:07
阅读次数:
754
题目之前比赛的一个题, 当时是崔老师做的,今天我自己做了一下。。。。还要注意用bfs的时候
有时候并不是最先到达的就是答案,比如HDU 3442这道题是要求最小的消耗血量伤害,但是并不是最先到达目标点的路径就是最小的伤害,因为每一个点的伤害是
不一样的, 这种情况要用优先队列优化, 对伤害优化。题意...
分类:
其他好文 时间:
2014-05-01 18:50:36
阅读次数:
405
就我接触到的事务,使用最多的事务管理器是JDBC事务管理器。现在就记录下在spring中是如何使用JDBC事务管理器1)在spring中配置事务管理器为啥要为DataSourceTransactionManager类装配dataSource
Bean? 这是因为DataSourceTransact....
分类:
编程语言 时间:
2014-05-01 18:49:15
阅读次数:
403
by:rhythmk.cnblogs.com1、Hibernate 三种状态:
1.1、三种定义(个人理解,不一定准确): 瞬时状态(transient): 被session接管但不存在数据库中的对象状态 离线状态 (detached):
数据库中存在而不被session接管 ...
分类:
系统相关 时间:
2014-05-01 18:48:02
阅读次数:
486
1、权限2、代码播放:new Thread(){ public void run(){
mediaPlayer=MediaPlayer.create(MainActivity.this, Uri.parse(wangZhi)); try{ URL
myURL...
分类:
其他好文 时间:
2014-05-01 18:45:24
阅读次数:
288
~/.conkyrc# Conky, a system monitor, based on
torsmo## Any original torsmo code is licensed under the BSD license## All code
written since the fork of...
分类:
系统相关 时间:
2014-05-01 18:42:00
阅读次数:
580