封装加密方法:
public string EncodeBase64(string codepe,_ty string code)
{
string encode = "";
byte[] bytes = Encoding.GetEncoding(code_type).GetBytes(code);
try
{
encode = Convert.ToBase64St...
分类:
其他 时间:
2015-05-13 10:40:51
收藏:
0 评论:
0 赞:
0 阅读:
145
封装加密方法:
public string DecodeBase64(string code_type, string code)
{
string decode = "";
byte[] bytes = Convert.FromBase64String(code);
try
{
decode = Encoding.GetEncoding(code_type).G...
分类:
其他 时间:
2015-05-13 10:40:41
收藏:
0 评论:
0 赞:
0 阅读:
177
下表列出了awk的内置算术函数,表中的x和y是任意表达式。
算术函数
函数名
返回值
atan2(x,y)
值域内y/x的反正切
cos(x)
x的余弦,x为弧度
exp(x)
x的e指数函数
int(x)
x的整数部分,当x>0时,向下取整
log(x)
x的...
分类:
其他 时间:
2015-05-13 10:40:22
收藏:
0 评论:
0 赞:
0 阅读:
191
方法:
public string getMD5(string source)
{
string result = "";
try
{
MD5 getmd5 = new MD5CryptoServiceProvider();
byte[] targetStr = getmd5.ComputeHash(UnicodeEncoding.UTF8.GetByte...
分类:
其他 时间:
2015-05-13 10:40:11
收藏:
0 评论:
0 赞:
0 阅读:
229
数据结构之初探二叉树
树的一些基本概念:
树:N个节点组成的有限集合(N>=0)。
子树:上一个根节点的孩子,并且也是下一层子树的根节点。
二叉树:最多只有两个孩子节点的树。
空树:没有子节点的树。
非空树:
...
分类:
其他 时间:
2015-05-13 10:39:41
收藏:
0 评论:
0 赞:
0 阅读:
207
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 1000 + 10
vectorG[maxn];
bool vis[maxn];
int link[maxn];
int n, m;
bool Find(int u)
{
for(int i=0; i<G...
分类:
其他 时间:
2015-05-13 10:39:32
收藏:
0 评论:
0 赞:
0 阅读:
120
%% 图像抓取并存入当前目录image文件夹下% 建立图片存储文件夹
if exist('image','dir')~= 7
mkdir([cd,'/image']) % 与下一句一样
end
directory=[cd,'/image/']; %当前工作目录下文件夹%定义一个监控界面
hf = figure('Units', 'Normalized', 'Menubar', 'None',...
分类:
其他 时间:
2015-05-13 10:38:31
收藏:
0 评论:
0 赞:
0 阅读:
422
首先我们需要关于Opengl的一系列文件。
传送门:http://pan.baidu.com/s/1i3tgmkH
下载解压之后会出现3种后缀为.dll、.lib、.h的文件。
我们需要把这些不同类型的文件放在不同的地方。
所有把.H结尾的文件全部放在VS安装目录下的\VC\include\GL中,如果没有GL文件夹,则自己新建一个。
把.LIB结尾的文件全部放在VS安装目录下的\V...
分类:
其他 时间:
2015-05-13 10:37:52
收藏:
0 评论:
0 赞:
3 阅读:
8005
Problem Description
In 12th Zhejiang College Students Games 2007, there was a new stadium built in Zhejiang Normal University. It was a modern stadium which could hold thousands of people. The audi...
分类:
其他 时间:
2015-05-13 10:37:20
收藏:
0 评论:
0 赞:
0 阅读:
114
Description
The cows have reconstructed Farmer John’s farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The cows didn’t have time to rebuild any extra roads,...
分类:
其他 时间:
2015-05-13 10:36:49
收藏:
0 评论:
0 赞:
0 阅读:
178
/*
*copyright(c) 2015,烟台大学计算机学院
*All rights reserved。
*文件名称:第九周(运算符重载)
*作者:王忠
*完成日期:2015.4.29
*版本号:v1.0
*
*问题描述:定义Complex类中的>运算符的重载,实现输入和输出,
*输入描述:
*程序输出:
#include
using namespace std;
cla...
分类:
其他 时间:
2015-05-13 10:36:40
收藏:
0 评论:
0 赞:
0 阅读:
246
1、
struts2验证规则validation配置文件命名方式总结
1、Action级别校验命名格式:
ActionClassName-validation.xml
2、Action中某个方法的校验命名格式:
ActionClassName-ActionAliasName-validation.xml
...
分类:
其他 时间:
2015-05-13 10:36:07
收藏:
0 评论:
0 赞:
0 阅读:
257
有一类特殊的属性,即这个属性的类型是另外一个JavaBean,如有一个User类,代码如下:
package data;
public class User
{
private String name;
private int age;
public String getName()
{
return name;
...
分类:
其他 时间:
2015-05-13 10:35:34
收藏:
0 评论:
0 赞:
0 阅读:
92
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8129 Accepted Submission(s): 4097
Problem Description
这次xhd面临的问题是这样的:在一个平面内有两个点,求两个...
分类:
其他 时间:
2015-05-13 10:35:25
收藏:
0 评论:
0 赞:
0 阅读:
241
/*
*copyright(c) 2015,烟台大学计算机学院
*All rights reserved。
*文件名称:第九周(运算符重载时间类)
*作者:王忠
*完成日期:2015.5.13
*版本号:v1.0
*
*问题描述:实现Time类中的运算符重载。定义对时间对象的自增和自减一目运算符
//一目运算符的重载
CTime operator++(int);//后置++,...
分类:
其他 时间:
2015-05-13 10:34:44
收藏:
0 评论:
0 赞:
0 阅读:
354
先回顾一下:
1,之前最先是做的一个水果列表的问题
实现是一个水果类fruit.java+主XML文件中是ListView
另外一个单独的水果子项fruit_item.xml
然后是一个适配器Adapter.java
2个xml文件+三个类
2,实现碎片的时候
主xml文件中是Fragment(放碎片),加别的frag的时候带上完整包名就行,所以外加
一个fragment....
分类:
其他 时间:
2015-05-13 10:34:33
收藏:
0 评论:
0 赞:
0 阅读:
405
用2个组合为3种情况,4,6,8......为2种情况
#include
#include
#include
using namespace std ;
const int maxn = 40 ;
typedef long long ll ;
ll a[maxn] ;
ll dp[maxn] ;
int main()
{
// freopen("in.txt","r",...
分类:
其他 时间:
2015-05-13 10:33:53
收藏:
0 评论:
0 赞:
0 阅读:
123
题意:给出n个单词,问这些单词能否首尾相连组成一个整体,其中部分单词可以翻转。
思路:将每个单词的首尾字母看成结点,每个单词看成一条边,可以看出这是一张混合图,要求判断是否有欧拉路。使用判断欧来回路的方法,如果存在欧拉回路那么就一定存在欧拉路了;否则如果有且仅有两个点的(出度-入度)是奇数,那么给这两个点加边,判断是否存在欧拉回路。注意这一题要判断图的连通性。...
分类:
其他 时间:
2015-05-13 10:33:03
收藏:
0 评论:
0 赞:
0 阅读:
120
最长公共子序列
1.问题的理解与描述最长公共子序列(LCS)问题形式化为:输入:序列X = 和Y = 。
输出:X与Y的一个最长公共子序列Z。
最优子结构与子问题的重叠
定理3-1(最长公共子序列的最优子结构)
设X = 和Y = 为两个序列,并设Z = <...
分类:
其他 时间:
2015-05-13 10:32:49
收藏:
0 评论:
0 赞:
0 阅读:
126
实验为了证明如下:
RMAN备份中,归档日志、控制文件和数据文件不能放在同一个备份集里,因为数据文件所在的备份集以Oracel 数据块为最小单位,
而控制文件块大小为作为16384,16K。归档日志文件所在的备份集也是以操作系统块为最小单位,此处为512字节。
所以归档日志文件备份集、控制文件备份集和数据文件备份集不能在同一个备份集里面。
---
证明以上以后,创建不同块大小的表空间,测...
分类:
其他 时间:
2015-05-13 10:32:40
收藏:
0 评论:
0 赞:
0 阅读:
258