#define _CRT_SECURE_NO_WARNINGS#include int Is_SXH(int num);int main(){ int in1, in2; int temp = 0; int flag = 0; while (scanf("%d %d", &in1, &in2) !=...
分类:
其他好文 时间:
2014-12-07 23:02:33
阅读次数:
156
Code Uri uri = Uri.parse("market://details?id="+getPackageName()); Intent intent = new Intent(Intent.ACTION_VIEW,uri); intent.addFlags(Intent.FLAG_A.....
分类:
移动开发 时间:
2014-12-07 17:37:08
阅读次数:
261
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1503题意:由两个字符串构造出另一个字符串,该字符串包含前两个字符串(按字符顺序,但不一定连续),使该字符串长度最小分析:dp[i][j]表示s1[0-i]与s2[0-j]的最长公共子串.用数字flag随...
分类:
其他好文 时间:
2014-12-07 06:30:24
阅读次数:
264
包尾加\n编程实践SYNOPSIS
#include
#include
ssize_t recv(int sockfd, void *buf, size_t len, int flags);与read相比,只能用于套接字文件描述符,而且多了一个flagsFlags常用取值:MSG_OOB(紧急指针,带外数据) This flag requests r...
分类:
其他好文 时间:
2014-12-05 12:46:02
阅读次数:
276
在写存储过程中有如下代码: FOR a IN ( SELECT a.svo_no,a.AUDIT_NO,a.order_id FROM TT_PI_MODEL_REL a ) LOOP SELECT COUNT(1) INTO V_FLAG...
分类:
数据库 时间:
2014-12-05 12:35:13
阅读次数:
234
#include
#include
using namespace std;
string a[20010],b[20010];
int main()
{
int n,m,i,flag;
string x,y;
while(cin>>n>>m)
{
flag=0;
int top=0;
int top1=0;
int top2=0;
for(i=0;i<m;i++)
...
分类:
其他好文 时间:
2014-12-05 00:49:43
阅读次数:
192
function send(){
var users=[1000000013810001001];
var data={
users:users,
flag:true
};
var address="192.168.30.237:10101";
alert...
分类:
Web程序 时间:
2014-12-04 20:00:40
阅读次数:
513
在Section的Event中, Do Custom Section("sectionxxx")自定义加载下一个Section Set Selection Append Flag()继承上一个Section中的Selection(system function) Set User Select...
分类:
其他好文 时间:
2014-12-04 17:21:29
阅读次数:
395
1.FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A B。如果没有添加这个标记,则栈情况将会变成:A B C D B。也就是说,如果添加了...
分类:
其他好文 时间:
2014-12-03 17:08:06
阅读次数:
132
很多人使用startActivity时候,会碰到如下的异常:
Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really...
分类:
其他好文 时间:
2014-12-03 12:28:34
阅读次数:
138