1. SharePoint 弹出框本文讲述SharePoint 2013 中使用 SP.UI.ModalDialog.showModalDialog时 showModalDialog 未定义的问题。function showDialog(title,url,width,height) { va...
分类:
其他好文 时间:
2014-07-09 20:08:13
阅读次数:
304
#include using namespace std;int main(int argc, const char * argv[]){//cin接收键盘输入 int age; double height; char name[10];// cout 在控制台输出一些信息// 相当于c语...
分类:
编程语言 时间:
2014-07-09 00:37:35
阅读次数:
270
引用COM组件的时候,出现了“无法嵌入互操作类型……,请改用适用的接口”的错误提示。解决方法:选中项目中引入的dll,鼠标右键,选择属性,把“嵌入互操作类型”设置为False。仅做一笔记而已。
分类:
其他好文 时间:
2014-07-08 23:34:21
阅读次数:
165
public class ResonpeRandomImgDemo extends HttpServlet { int width=100; int height=30;public void doGet(HttpServletRequest request, HttpServletResponse...
分类:
其他好文 时间:
2014-07-08 22:34:56
阅读次数:
262
注意部分:canvas的height和width不能再css中设定,应该在html中设定,否则会影响页面的分辨率。效果图:图1:代码css:#canvas{ cursor: crosshair;}button{ width: 80px;}.yellowBtn{ background...
分类:
其他好文 时间:
2014-07-08 22:31:32
阅读次数:
223
1、main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"...
分类:
移动开发 时间:
2014-07-08 20:00:21
阅读次数:
277
一些流行的应用的ListView的Item类似下图:
ListView的Divider没有没有覆盖到图片
可以这种来实现,先定义ListView在Layout中:
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"...
分类:
其他好文 时间:
2014-07-08 14:58:12
阅读次数:
245
<EditText
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入单位"
android:layout_marginLef...
分类:
移动开发 时间:
2014-07-06 12:06:32
阅读次数:
296
(清除未浮动元素左右浮动) clear:both
(清除当前浮动的元素左右浮动) overflow:hidden overflow:auto zoom:1px(IE) _height: px;(IE6)...
分类:
其他好文 时间:
2014-07-06 11:42:05
阅读次数:
220
题目大意:
求出字典序最小,重复次数最多,的子串。
思路分析:
RMQ + height 数组可以求出任意两个后缀的lcp
我们枚举答案字符串的重复的长度。
如果这个字符串的长度为 l ,而且这个字符串出现过两次或两次以上
那么你会发现在原串中 str[0] str[l] str[2*l] ....肯定有相邻的两个被包含在重复的串中。
我们求出这两个相邻的后缀的lcp
我...
分类:
其他好文 时间:
2014-07-05 23:47:48
阅读次数:
178