C、传统 C++#include //设定插入点#include //字符处理#include //定义错误码#include //浮点数处理#include //文件输入/输出#include //参数化输入/输出#include //数...
分类:
编程语言 时间:
2014-07-16 20:44:43
阅读次数:
163
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-07-16 20:44:52
阅读次数:
158
java 集合系列目录:Java 集合系列 01 总体框架Java 集合系列 02 Collection架构Java 集合系列 03 ArrayList详细介绍(源码解析)和使用示例Java 集合系列 04 LinkedList详细介绍(源码解析)和使用示例Java 集合系列 05 Vector详细...
分类:
编程语言 时间:
2014-07-16 20:45:00
阅读次数:
172
多继承class Person{public: Person(std::string theName); void introduce(); protected: std::string name;};class Teacher : public Person{pub...
分类:
编程语言 时间:
2014-07-16 20:45:08
阅读次数:
177
动态绑定方法一:动态绑定数据库中的字段。SqlConnection conn = UtilitySqlClass.OperateDataBase.ReturnConn();string strSQL = "select * from CompanyType";SqlDataAdapter ada =...
分类:
其他好文 时间:
2014-07-16 20:45:17
阅读次数:
148
今天没啥写的,就分享个思路吧。之前在群里讨论的时候,谢亮兄弟说判断密码是否是纯数字,纯字母之类的。如果用 if 或者 switch 写看着确实蛋疼,如果有 7, 8 条判断,那就老长一大段了。这个思路是我之前看 jQuery 源码的时候学到的,感觉用在这也不错。先来看代码吧。function tes...
分类:
Web程序 时间:
2014-07-16 20:45:25
阅读次数:
183
注意:使用配置文件时一定要先备份一份,取名:name-backup.conf公益图书馆平台一、环境搭建篇:1.修改apache中默认的项目文件夹在httpd.conf中修改DocumentRoot "XXX/htdocs" 为 DocumentRoot "E:/Source/PhpStorm" .....
分类:
其他好文 时间:
2014-07-16 20:45:41
阅读次数:
129
服务端-监听接收#include "winsock2.h"#pragma comment(lib,"WS2_32.LIB")int bufi;class mserver{private: SOCKET ssock,csock; sockaddr_in saddr,cadd...
分类:
编程语言 时间:
2014-07-16 20:45:32
阅读次数:
122
原题:ZOJ 3774 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3774-------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-07-16 20:45:49
阅读次数:
137
原题: ZOJ 3769http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769一个带有一些限制的背包问题。假设在没有限制的情况下,那么定义:dp[i][j]表示在前 i 类物品中,总的Toughness为 j 的时候最大的伤...
分类:
其他好文 时间:
2014-07-16 20:45:58
阅读次数:
132
本来是准备在工厂模式中顺便整理。但粗略浏览了,内容还是很多,需要单独开一篇。一、什么是多态性? 多态性可以概括为“一个接口,多种方法”。 多态与非多态的区别在于“成员函数调用地址的早绑定和晚绑定”。“早绑定”在编译期就可以确定函数的调用地址,是静态的;“晚绑定”在运行时才能确定函数的调用地址,是.....
分类:
编程语言 时间:
2014-07-16 20:46:22
阅读次数:
214
```cpp#includeint a[100],ans ;int main(){ int n , t = 0 ; while (scanf("%d",&n)!=EOF) { for (int i=1; i0) ; ++t ; printf("C...
分类:
其他好文 时间:
2014-07-16 20:46:13
阅读次数:
137
源自leetcode上的一道题。题目为:Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "bl...
分类:
其他好文 时间:
2014-07-16 20:46:04
阅读次数:
185
一。基本class Shape{ void draw(){ System.out.println(this+".draw()"); }}class Circle extends Shape{ @Override public String toString() ...
分类:
其他好文 时间:
2014-07-16 20:46:30
阅读次数:
132
2005-08-24 来源:CSDN 作者:wanchao2001 前言 在使用数据库的过程中,不可避免的须要使用到分页的功能,但是JDBC的规范对此却没有非常好的解...
分类:
Web程序 时间:
2014-07-16 20:46:46
阅读次数:
210
人生的第一道动态树,为了弄懂它的大致原理,需要具备一些前置技能,如Splay树,树链剖分的一些概念。在这里写下一些看各种论文时候的心得,下面的代码是拷贝的CLJ的模板,别人写的模板比较可靠也方便自己学习理解,然后一些概念的则是学习了一些论文,下面的内容可以看作对别人模板的理解心得,以及对论文的收获体...
分类:
其他好文 时间:
2014-07-16 20:46:38
阅读次数:
189
今天第一题很水,主要坑在负数上,不多说,上代码。 1 #include 2 #include 3 #include 4 using namespace std; 5 long long N,K; 6 long long a[1000000]; 7 long long flags[1000000].....
分类:
其他好文 时间:
2014-07-16 20:46:53
阅读次数:
104