//// ViewController.m// UITableView//// Created by City--Online on 15/5/21.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewControll...
分类:
其他好文 时间:
2015-05-22 16:34:27
阅读次数:
177
# Write your MySQL query statement belowSELECT p.FirstName, p.LastName, a.City, a.State FROM Person AS pLEFT JOIN Address AS a ON p.PersonId = a.Perso...
分类:
数据库 时间:
2015-05-22 01:55:02
阅读次数:
143
用jQuery实现省市区三级联动(可做插件)
有参考别的文档,如有雷同,不胜感激
先上效果图
上三级联动代码
city.html
html>
head>
title>city.htmltitle>
meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
meta http...
分类:
Web程序 时间:
2015-05-21 14:14:29
阅读次数:
110
下面是设置无效的例子@Html.DropDownListFor(model => model.City, ViewBag.City as IEnumerable, "==选择==", new { @class = "form-control dropdown-toggle" })@Html.Drop...
分类:
Web程序 时间:
2015-05-21 12:18:55
阅读次数:
217
题意:给定一张图,按照输入的边逐个删除,求每次删除一条边之后图的联通块数量。
分析:反向并查集求联通分量,假设起始各个点都不连通,接着从最后一条边开始添加,如果新加入的边联通了两个联通块,则联通分量减1(保存在数组中),最后正序输出结果即可。
#include
#include
using namespace std;
int p[10005];
...
分类:
其他好文 时间:
2015-05-21 00:05:44
阅读次数:
427
题目链接:Design the city题目大意是对给定3点,求这三个点只之间的最短距离。三个点两两组合求lca:dis[u]+dis[v]-dis[lca];将三个组合值相加除以2即为答案。RMQ算法学习:http://blog.csdn.net/liang5630/article/details...
分类:
编程语言 时间:
2015-05-20 17:46:47
阅读次数:
173
//// ViewController.m// UITextField//// Created by City--Online on 15/5/20.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewControll...
分类:
其他好文 时间:
2015-05-20 12:50:25
阅读次数:
107
//// ViewController.m// UISwitch//// Created by City--Online on 15/5/19.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewController....
分类:
其他好文 时间:
2015-05-19 18:38:12
阅读次数:
106
//// ViewController.m// UISlider//// Created by City--Online on 15/5/19.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewController....
分类:
其他好文 时间:
2015-05-19 18:06:13
阅读次数:
145
在swift 里引用循环的造成,主要有两个方法,
1.类之间的引用
2.clourse 闭包引用
解决办法:
weak references and unowned references. 也就是weak,unowned
weak, 来修饰可选的,? 结尾的,如:var weak city: String ?
unowned 来修身 一直存在的。 var unowned city: S...
分类:
其他好文 时间:
2015-05-19 16:43:14
阅读次数:
165