1 更具资源ID,设置窗口的属性2 隐藏、显示、可用等。3 //显示城市下拉列表4 GetDlgItem(IDC_CITY_FIRST)->ShowWindow(SW_SHOW);5 //隐藏城市静态文字框6 GetDlgItem(IDC_STATIC_CITY)->ShowWindow(SW_HI...
分类:
编程语言 时间:
2014-10-21 15:12:49
阅读次数:
235
UVA1455 - Kingdom(并查集 + 线段树)
题目链接
题目大意:一个平面内,给你n个整数点,两种类型的操作:road x y 把city x 和city y连接起来,line fnum (浮点数小数点一定是0.5) 查询y = fnum这条直线穿过了多少个州和city。州指的是连通的城市。
解题思路:用并查集记录城市之间是否连通,还有每个州的y的上下界。建立坐标y的...
分类:
其他好文 时间:
2014-10-21 12:18:47
阅读次数:
176
{"people": ["city","name"]} // []中不能含有 key:value的形式{"name": "laogao","city": "beijing"} //{}通常含有key:value对["name","city"] //[]通常含有value的列表,多个用,隔开
分类:
Web程序 时间:
2014-10-21 00:35:32
阅读次数:
288
1 一.定义表变量 2 3 DECLARE @T1 table 4 ( 5 UserID int , 6 UserName nvarchar(50), 7 CityName nvarchar(50) 8 ); 9 10 insert into @T1 (UserID,UserName,City...
分类:
数据库 时间:
2014-10-20 16:38:25
阅读次数:
198
============问题描述============ {"weatherinfo":{"city":"北京","cityid":"101010100","temp1":"2","temp2":"15","weather":"小到中雨转小雨","img1":"d21.gif","img2":"n7...
分类:
移动开发 时间:
2014-10-19 23:08:19
阅读次数:
240
Currency Exchange
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 20482
Accepted: 7352
Description
Several currency exchange points are working in our city. ...
分类:
其他好文 时间:
2014-10-19 14:23:32
阅读次数:
364
Currency Exchange
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 20482
Accepted: 7352
Description
Several currency exchange points are working in our city...
分类:
其他好文 时间:
2014-10-19 14:21:07
阅读次数:
245
坦克大战
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often
play it on computer now.
What we a...
分类:
其他好文 时间:
2014-10-19 11:40:56
阅读次数:
309
单调栈: 维护一个单调栈
A Famous City
Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1671 Accepted Submission(s): 644
Problem Descrip...
分类:
其他好文 时间:
2014-10-18 00:47:09
阅读次数:
296
思维方式的转变
以从一个城市集合中寻找是否存在Chicago为例:
习惯的方式
boolean found = false;
for(String city : cities) {
if(city.equals("Chicago")) {
found = true;
break;
}
}
System.out.println("Fo...
分类:
编程语言 时间:
2014-10-17 15:39:38
阅读次数:
252