1、chrome默认字体12px,Firefox默认10px;所以要设置字体的大小,不用默认。2、解决浏览器的兼容:1、一定要生命DOCTYPY,引用标准的DTD 2、用cSS初始化代码初始化 3、注意书写规范。 4、浏览器bug(IE)3、ie的几种常见bug: 1、盒模型bug 用DOCTYPE...
分类:
其他好文 时间:
2014-07-29 13:45:58
阅读次数:
201
bool is_left( int n )//是否为左节点{ return n % 2 == 0;}bool is_right( int n )//是否为右节点{ return 0 != n && ! is_left( n );}int father( int n )//父亲节点{ if ( ...
分类:
其他好文 时间:
2014-07-29 13:42:48
阅读次数:
182
该attribute可以把指定的文件拷贝到每次运行的Out目录下,比如有一个config文件,那么用下面的命令, [TestClass] [DeploymentItem("Default.config")] public class NewSMTest则每次MSTEST运行,都会拷到其OUT下...
分类:
其他好文 时间:
2014-07-29 13:27:18
阅读次数:
206
#include
using namespace std;
string m[]={"vaporeon","jolteon","flareon","espeon","umbreon","leafeon","glaceon","sylveon"};
int len[]={8,7,7,6,7,7,7,7};
int main()
{
int n,ans;
char s[20];
...
分类:
其他好文 时间:
2014-07-29 13:09:27
阅读次数:
200
原来这个代码超时
#include
#include
#include
using namespace std;
#define N 200
#define inf 0x3fffffff
int cap[N][N];
int fee[N][N];
int s,t,sum,pre[N];
int spfa() {
queueq;
int dis[N],visit[N],u,i;
memset(p...
分类:
其他好文 时间:
2014-07-29 13:03:47
阅读次数:
317
1.4.7 奇数偶数 POJ 1733 Parity game...
分类:
其他好文 时间:
2014-07-29 12:54:37
阅读次数:
220
21点游戏,命令行的,面像过程的写法。ruby 的写法以后再试试。
# this is game 21 point
# 操作命令符 空没有操作,n下一步,抽牌;w亮牌结束;l认输
$ope = ''
$prompt = '>'
$x1 = 0
$x2 = 0
$x3 = 0
$pc = 0
$u1 = 0
$u2 = 0
$u3 = 0
$over = ''
def out_main(a = ...
分类:
其他好文 时间:
2014-07-29 12:52:27
阅读次数:
212
1 判决树
在FPGA中判断使用if else语句以及case实现。
a) if else 是有特权的,类似于优先编码(当两个条件同时成立,仅判断条件靠前的成立),所以当有特权条件时应该采用if else结构,对于并行的if条件语句其特权顺序恰好与if else 相反。
b) case 语句常常(不总是)用在所有条件互不相容的条件下进行的。但是默认条件下case依然是有特权的,编译器会选择附...
分类:
其他好文 时间:
2014-07-29 12:52:17
阅读次数:
195
原来在linux/include/linux/syscalls.h 中定义了如下的宏:复制代码#define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)#define SYSCALL_DEFINE2(name...
分类:
系统相关 时间:
2014-07-29 12:35:16
阅读次数:
284
高仿代码:#include #include #include #include #include #include using namespace std;#define N 205#define M 2005const int inf = 0x3f3f3f3f;int v[M],w[M],nex...
分类:
其他好文 时间:
2014-07-29 12:31:56
阅读次数:
189