1.如果根据用户的登录情况来动态的设置MainPage 如果本地有用户的信息,则直接登录到主界面MainPage 如果没有,则需要进入到LoginPage,并且登录成功后进入MainPage,并且移除LoginPage,否则会出现按返回键重新右MainPage进入LoginPage的情况,显然这不符
分类:
其他好文 时间:
2016-03-02 00:09:46
阅读次数:
313
传送门 #include #include #include #include using namespace std; int main() { int n; while(~scanf("%d",&n)) { int a,res=0; for(int i=0;i<n;i++) { scanf("%...
分类:
其他好文 时间:
2016-03-02 00:07:46
阅读次数:
175
//典型后中省树,这种方法必须有 中序序列来确定根的位置,然后二分建树; //因为用的vc,之前用序列位置建树通不过,用坐标建树通过了,怀疑vc的功能限制,有时间再来测试,眼下感觉还是坐标好啊,用地址巧了半个晚上了找不着八哥,还不A,哭晕 #include<cstdio>//#include<cst
分类:
其他好文 时间:
2016-03-02 00:09:48
阅读次数:
211
思维导图透视 判断字符串的开始与结尾 String类的startsWith()与endsWith()方法分别用于判断字符串是否以指定的内容开始和结尾,它们的返回值都为boolean类型。 (1)startsWith()方法 该方法用于判断当前字符串对象是否以参数指定的字符串开始。 str.start
分类:
其他好文 时间:
2016-03-02 00:09:08
阅读次数:
313
启用Ad Hoc Distributed Queries: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 关闭A
分类:
其他好文 时间:
2016-03-02 00:07:02
阅读次数:
158
题目大概是给一张有向图,有n张票,每张票只能使用一次,使用一张票就能用pi匹马拉着走过图上的一条边,走过去花的时间是边权/pi,问从a点走到b点的最少时间是多少。 用dp[u][S]表示当前在u点且用过的票集合是S的最少时间,丢进SPFA更新。 1 #include<cstdio> 2 #inclu
分类:
其他好文 时间:
2016-03-02 00:08:58
阅读次数:
247
34. Search for a Range Problem's Link ---------------------------------------------------------------------------- Mean: 给定一个有序数组和一个数k,求k在这个数组中的起始下标和结
分类:
其他好文 时间:
2016-03-02 00:06:05
阅读次数:
244
1 #include<cstdio> 2 #include<iostream> 3 #define T 1001 4 #define M 10005 5 #define inf 0x7fffffff 6 #include<cstring> 7 using namespace std; 8 int c
分类:
其他好文 时间:
2016-03-02 00:07:15
阅读次数:
257
1 图像GIF格式工作原理 GIF是用于压缩具有单调颜色和清晰细节的图像(如线状图、徽标或带文字的插图)的标准格式。 GIF(Graphics InterchangeFormat)的原义是“图像互换格式”,是CompuServe公司在1987年开发的图像文件格式。GIF文件的数据,是一种基于LZW算
分类:
其他好文 时间:
2016-03-02 00:07:57
阅读次数:
255
1,多种方式判断字符串"mingrikejijavabu"中字符‘i’出现的次数 package com.hanqi; public class Number { public static void main(String[] args) { String num=new String("ming
分类:
其他好文 时间:
2016-03-02 00:04:40
阅读次数:
268
最近在研究一些比较基础的开发知识,当然就会涉及到网络编程相关的东西 大学学习网络基础的时候老师讲过,网络由下往上分为物理层、数据链路层、网络层、传输层、会话层、表示层和应用层。通过初步的了解,我知道IP协议对应于网络层,TCP协议对应于传输层,而HTTP协议对应于应用层,三者从本质上来说没有可比性,
分类:
其他好文 时间:
2016-03-02 00:04:32
阅读次数:
246
<!DOCTYPE html> <html> <head> <title>icon weather</title> <style type="text/css"> body { max-width: 42em; padding: 2em; margin: 0 auto; color: #161616
分类:
其他好文 时间:
2016-03-02 00:04:38
阅读次数:
249
<!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <script language="javascript"> window.onload=function(){ var ulDom=document.getEl
分类:
其他好文 时间:
2016-03-02 00:03:14
阅读次数:
320
super关键词1访问父类被隐藏的属性public class Parent(){int money=10000;} public class Child extends Parent(){int money=100;pulbic int getParentMoney(){return super.
分类:
其他好文 时间:
2016-03-02 00:03:35
阅读次数:
216
bool HelloWorld::init() { if ( !Layer::init() ) { return false; } FileUtils *fu=FileUtils::getInstance(); ValueMap vm=fu->getValueMapFromFile("data.pl
分类:
其他好文 时间:
2016-03-02 00:03:58
阅读次数:
184
正则表达式: 正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个
分类:
其他好文 时间:
2016-03-02 00:03:07
阅读次数:
277
1 #include "stdio.h" 2 #include "string.h" 3 #include "math.h" 4 #include "malloc.h" 5 6 const long long Max_size = 2000;//输入字符串的最大长度,可以由单个词条和多个词条组成 7
分类:
其他好文 时间:
2016-03-02 00:01:49
阅读次数:
266