当我在SQLPLUS执行 :
INSERT INTO customers (
customer_id, first_name, last_name, dob, phone
) VALUES (
5, 'Doreen', 'Blue', '20-MAY-1970', NULL
);
出现 “ORA-01843: 无效的月份 ”这个错误。 Google之后找到下面的这篇文章...
分类:
其他好文 时间:
2014-05-10 09:19:59
阅读次数:
348
Given an array with n objects colored red,
white or blue, sort them so that objects of the same color are adjacent, with
the colors in the order red, ...
分类:
其他好文 时间:
2014-05-07 18:01:05
阅读次数:
412
让咱们先来看一下数组实现栈的例子:package chaper1;import
java.util.Arrays;import java.util.EmptyStackException;public class Stack_Test00
{ private Object[] elements...
分类:
其他好文 时间:
2014-05-07 12:38:09
阅读次数:
257
inline static UIColor* getColorFromHex(NSString *hexColor)
{
if (hexColor == nil) {
return nil;
}
unsigned int red, green, blue;
NSRange range;
range.length = 2;
...
分类:
移动开发 时间:
2014-05-07 11:48:26
阅读次数:
327
用Array来实现Stack,语言c#。欢迎大家批评指正。关键点:当数组满的时候,把数组长度延长2倍当非空元素等于数组长度的1/4的时候,把数组长度减半。public
class Stack { T[] a = new T[1]; int size = 0; ...
分类:
其他好文 时间:
2014-05-07 10:39:49
阅读次数:
461
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_stack.h 完整列表
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its do...
分类:
其他好文 时间:
2014-05-07 07:40:07
阅读次数:
322
用栈实现括号匹配其实是一个很简单的问题,思路在代码注释里面写的很清楚了,只是接口设置的好像不太好。
如果在main里面设置的str不是动态分布的,在linux下就会出错,不知道windows会不会出问题。
kuohao.cpp
#include
#include "stack.cpp"
using namespace std;
//仅用于检测(),{},[],其他的符号原理都是一样的
bo...
分类:
其他好文 时间:
2014-05-07 02:39:17
阅读次数:
247
#include #include #include using namespace
std;int main(){ int n;cin>>n; while(n--){ stack s; string
str;cin>>str; for(int ...
分类:
其他好文 时间:
2014-05-07 00:19:41
阅读次数:
356
我们退出Activity可以调用:finish(),system(0),但是这些都只是单单退出单个Activity
也有人会说,直接把进程杀死,这些做法都不是很可取,其实我们翻看api可以发现,Activity
都是放入stack中管理,我们只要把stack清空了,不就完全退出了嘛。要对Activity的stack
管理,就需要了解launchMode的四种状态,这里...
分类:
移动开发 时间:
2014-05-06 23:40:01
阅读次数:
409
题意:给出1-10个长度为60的字符串,求出最长的公共子串(长度不能小于3),如果有多个一样长的,输出字典序最短的。
解法:想到kmp时,自己第一反应枚举第一个串的所有子串,在其他所有串中走一遍kmp,复杂度为10*60*60*60,但是发现只需枚举第一个串后缀就可以,每次枚举记录在所有串能走最远中走的最短的那个长度。这样复杂度就成了10*60*60,0ms AC。
代码:/*****...
分类:
其他好文 时间:
2014-05-06 22:41:38
阅读次数:
320