程序的开发当中一直在用文件的读写,但是对于java当中输入流以及输出流只是会用不理解,一直以来想搞清楚其,但是一直没有执行(悲剧),今天早上抽出半个小时通过JDK
API1.6.0中文版帮助逐步的了解下字节输入流读取字节的方法;
下面就说说InputStream当中read()、read(byte[] b)、read(byte[]
b、int off 、int
len)的使用以...
分类:
编程语言 时间:
2014-07-05 10:56:51
阅读次数:
312
实现效果:强制用户只能输入16位数,这里是运用在信用卡号码的输入。
输入字符数大于16,把字的颜色设为黑色,且不管继续输入什么内容,只取前16位;
若小于16位,把字的颜色设为红色,且设置“无效”。...
分类:
移动开发 时间:
2014-07-04 09:21:51
阅读次数:
490
题意:求1-n里有多少人包含”49“的数字
思路:数位DP,分三种情况:到第i位没有49的情况,到第i位没有49且最高位是9的情况,到第i位有49的情况,将三种情况都考虑进去就是了
#include
#include
#include
#include
using namespace std;
long long dp[30][3], n;
int arr[30];
void in...
分类:
其他好文 时间:
2014-07-04 08:48:00
阅读次数:
220
jsp页面中onsubmit="return checklogin();"报错解决方案...
分类:
Web程序 时间:
2014-07-04 08:27:19
阅读次数:
644
??
Pre-11gR2: "crsctl check crs" command hangs at EVMD check (文档 ID 1578875.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.3 to 11.1.0.7 [Release 10.2 to 11.1]
Informatio...
分类:
其他好文 时间:
2014-07-04 08:16:00
阅读次数:
335
(一)增量构造法
#include
#include
using namespace std;
const int MAXN = 1000;
int A[MAXN], n;
void print_subset(int n, int *A, int cur) {
for(int i = 0; i < cur; ++i) cout << A[i] << " ";
cout << endl...
分类:
其他好文 时间:
2014-07-04 08:06:43
阅读次数:
224
iOS7 中的UIViewControllers设置了automaticallyAdjustsScrollViewInsets。如果是YES,scrollview会根据status bar, navigation bar以及tool bar或者tab bar的高度自动调整。可以通过在storyboard的右侧进行设置,在Attributes Inspector中,不勾选“Adjust Scroll...
分类:
移动开发 时间:
2014-07-04 08:00:39
阅读次数:
539
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-07-04 07:35:58
阅读次数:
215
本文内容目录:
一:网络IO模型的分类,各个模型的定义和特点
er...
分类:
其他好文 时间:
2014-07-04 07:28:41
阅读次数:
340
1、sum over用法
sum(col1) over(partition by col2 order by col3 )
以上的函数可以理解为:按col2 进行分组(partition ),每组以col3 进行排序(order),并进行连续加总(sum)
表a,内容如下:
B C D
02 02 1
02 03 2
02 04 3
02 05...
分类:
其他好文 时间:
2014-07-04 07:09:15
阅读次数:
503