作者:zhanhailiang 日期:2014-10-30 问题场景 在写样式时常常须要用到非ASCII字符的属性值,例如以下: .hot_list .sign_discount:before { content: "满减"; padding: 0 8px; margin-right: 7px; f ...
分类:
Web程序 时间:
2017-06-03 17:33:34
阅读次数:
266
//不使用大小于号,求出两数最大值 #include <stdio.h> #include <math.h> double Max(double a, double b) { double q = sqrt((a-b)*(a-b)); return ((a + b) + q) / 2; } int ...
分类:
编程语言 时间:
2017-06-03 17:30:57
阅读次数:
276
iOS simulator出现故障,提示: An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) 解决方式: [iOS Simulator] >>> [Rest Conten ...
分类:
移动开发 时间:
2017-06-03 17:25:44
阅读次数:
270
Multi-target tracking by Lagrangian relaxation to min-cost network flowhigh-order constraints min-cost network flow multi-target tracking读 “Multi-targ... ...
分类:
Web程序 时间:
2017-06-03 17:25:24
阅读次数:
276
单调递增子序列(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描写叙述 给定一整型数列{a1,a2...,an}(0<n<=100000),找出单调递增最长子序列。并求出其长度。 如:1 9 10 5 11 2 13的最长单调递增子序列是1 9 10 11 13,长度为5 ...
分类:
其他好文 时间:
2017-06-03 16:17:26
阅读次数:
149
#include <stdio.h> int main(int argc, const char * argv[]) { //整形输出 printf("%d,%d",3,4); printf("\n"); //整形输出的字符宽度。%md printf("%4d,%4d",3,4); printf(" ...
分类:
编程语言 时间:
2017-06-03 16:13:24
阅读次数:
184
在通过Struts2标签显示对象的Clob属性值的时候。显示的并非CLOB或者BLOB的内容,而是显示的toString方法的值 比如我在实体中的注解为: @Lob @Column(name = "CONTENT_TEXT") public String getContentText() { ret ...
分类:
其他好文 时间:
2017-06-03 16:08:28
阅读次数:
147
Ugly Number Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3 ...
分类:
其他好文 时间:
2017-06-03 15:16:30
阅读次数:
192
题目: 链接:点击打开链接 题意: n个课程m天完毕,a[i][j]表示用j天完毕第i个课程得到的价值,求最大价值。 算法: 分组背包。 思路: m天是总容量,n是组数。 代码: #include<iostream> #include<cstdio> #include<cstring> using ...
分类:
其他好文 时间:
2017-06-03 15:08:29
阅读次数:
155
OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,眼下的版本号是2.0版。 一、应用场景 为了理解OAuth的适用场合,让我举一个如果的样例。 有一个"云冲印"的站点。能够将用户储存在Google的照片,冲印出来。用户为了使用该服务,必须让"云冲印"读取自己 ...
分类:
其他好文 时间:
2017-06-03 15:05:22
阅读次数:
263