#include
#include
using namespace std;
class Teacher
{
public:
Teacher(string nam,int ag,char s,string ad,int num,string t)
{
name=nam;
age=ag;
sex=s;
...
分类:
其他好文 时间:
2014-05-15 04:32:56
阅读次数:
262
Problem Description
The new semester begins! Different kinds of student societies are all trying to advertise themselves, by giving flyers to the students for introducing the society. However, due ...
分类:
其他好文 时间:
2014-05-15 03:57:24
阅读次数:
311
戳我去解题You are climbing a stair case. It
takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In
how many distinct ways can you ...
分类:
其他好文 时间:
2014-05-15 01:55:06
阅读次数:
251
org.hibernate.NonUniqueObjectException: a different
object with the same identifier value was already associated with the
session异常解决办法为什么还会说已经存在相同的se...
分类:
系统相关 时间:
2014-05-14 23:40:06
阅读次数:
419
题意:将A-B编码为1-26,现在给一串数字,问有多少种解码方式
思路:动态规划
设f[i]表示以第i个字符结尾的数字串的解码方式,则
如果 s[i - 2]是1 或 s[i - 2]是2且s[i - 1]小于6,f[i] = f[i - 1] + f[i - 2]
否则,f[i] = f[i - 1]
此外,还要再加一些判断
如果s[i - 1]是零,则以s[i - 2]数字结尾的解码方式为零。因为s[i - 2]数字必须和s[i - 1]结合起来
实现的时候只要两个变量保存前两个的值,即f[i - 1...
分类:
其他好文 时间:
2014-05-14 21:48:05
阅读次数:
261
原文地址:http://hi.baidu.com/js2007/item/24efbb0fae1c9b90a3df432apackage
LdapTest;import java.util.Hashtable;import javax.naming.Context;import
javax.nami...
分类:
编程语言 时间:
2014-05-14 03:14:44
阅读次数:
347
ADExplorer是一款可以帮助查看和编辑数据库的软件。该数据库查看编辑器使用方便,操作简单,用户可通过该软件进行浏览AD数据库、自定义快速入口、查看对象属性、编辑权限、精确搜索等操作,还可以保存数据库的快照。
分类:
其他好文 时间:
2014-05-14 03:10:38
阅读次数:
304
Pat1044代码
题目描述:
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can...
分类:
其他好文 时间:
2014-05-13 14:33:08
阅读次数:
437
原文地址:http://blog.hsdn.net/1266.html我的公司使用AD進行使用者驗證,因此在使用者操作的便利性考量前提下.如何讓使用者不需要重覆輸入帳號與密碼,而直接抓取使用者已經登入AD的帳號資訊,已經變成系統開發必須要考量的項目之一
(至少我自己是這樣認為啦 @@).NET整合A...
分类:
其他好文 时间:
2014-05-12 21:38:46
阅读次数:
463