首先,想说一下,个人觉得PopupWindow用起来比AlertDialog简单,易用,相对AlertDialog更适合初学者的使用使用PopupWindow创建对话框风格的窗口只要如下两步:一、调用PopupWindow的构造器创建PopupWindow对象二、调用PopupWindow的show...
分类:
移动开发 时间:
2014-07-22 22:50:34
阅读次数:
189
题目链接:http://acm.hnu.cn/online/?action=problem&type=show&id=12817解题报告:定义两种运算符号,一种是>>,就是右移,另一种是S,S = (X^2) % (1e9+7);跟其它表达式求值一样,用两个栈,一个存操作数,另一个存操作符,有一个问...
分类:
其他好文 时间:
2014-07-22 22:50:14
阅读次数:
261
基础 树状数组
每输入一组数,就对染色次数进行修改;
#include
#include
#include
using namespace std;
int s[100005],a;
int low(int i)
{
return i&(-i);
}
void show(int q,int w)
{
while(q>0)
{
s[q]+=w;...
分类:
其他好文 时间:
2014-07-22 22:49:35
阅读次数:
188
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 typedef long long INT; 9 const INT MOD = 1000000007; 10 co....
分类:
其他好文 时间:
2014-07-22 22:48:35
阅读次数:
247
前段时间准备华为机试,正好之前看了一遍《剑指 Offer》,就在九度 Online Judge 上刷了书中的题目,使用的语言为 C++;只有3题没做,其他的都做了。 正如 Linus Torvalds 所言“Talk is cheap, show me the code!",详见托管在 Git...
分类:
其他好文 时间:
2014-07-22 22:48:35
阅读次数:
185
2、显示当前连接用户?
SQL>?show?user?
3、查看系统拥有哪些用户?
SQL>?select?*?from?all_users;?
4、新建用户并授权?
SQL>?create?user?a?identified?by?a;(默认建在SYSTEM表空间下)?
SQL>...
分类:
数据库 时间:
2014-07-22 08:28:35
阅读次数:
327
AlertDialog dialog = new AlertDialog.Builder(this).create();
dialog.show();
WindowManager.LayoutParams params = dialog.getWindow().getAttributes();
params.width = 200;
params.height = 200 ;
dialog....
分类:
其他好文 时间:
2014-07-22 08:25:36
阅读次数:
176
#### 1. 在Hive中使用show tables;等命令报错:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes **解决办法:** 到mysql中的hive数据库里...
分类:
其他好文 时间:
2014-07-21 10:12:36
阅读次数:
453
mysql中怎样查看和删除唯一索引。查看唯一索引:show index from mytable;//mytable 是表名查询结果例如以下:查询到唯一索引后,怎样删除唯一索引呢,使用例如以下命令:alter table mytable drop indexmdl_tag_use_ix;//mdl_...
分类:
数据库 时间:
2014-07-21 09:36:50
阅读次数:
226
链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4675
题目大意:
在一个平面上有 n (1
解题思路:
由于n很小,可以对整个图进行压缩,只要不改变每条边的相对位置,对答案没有影响。
可以将这些矩形的坐标离...
分类:
其他好文 时间:
2014-07-19 23:22:29
阅读次数:
400