码迷,mamicode.com
首页 >  
搜索关键字:city game    ( 8645个结果
通过Dom方式解析xml文件
此项目通过简单的天气情况显示来实现xml文件的解析 1. 搭建环境 1)创建如下图的包、类及文件 2)布局文件的大概样式如下图所示,用到四个TextView控件和一个RadioButton控件 3)china.xml文件的内容如下 <city cityname="南京" pyName="jiangsu" qu...
分类:其他好文   时间:2014-06-20 13:11:49    阅读次数:204
POJ 1753 Flip Game (DFS + 枚举)
题目:http://poj.org/problem?id=1753 这个题在开始接触的训练计划的时候做过,当时用的是DFS遍历,其机制就是把每个棋子翻一遍,然后顺利的过了,所以也就没有深究。 省赛前一次做PC2遇到了机会一模一样的题,只不过是把棋盘的界限由4X4改为了5X5,然后一直跑不出结果来,但是当时崔老湿那个队过了,在最后总结的时候,崔老湿就说和这个题一样,不过要枚举第一行进行优化。...
分类:其他好文   时间:2014-06-20 12:47:10    阅读次数:205
通过Sax方式解析xml文件
说明:此案例使用的是通过Dom方式解析xml文件这篇文章里的City类和china.xml文件。 1. 因为xml文件有两种格式,一是上面那篇文章里的那种元素节点里只包含属性节点,另一种就是元素节点里包含元素节点和文本节点,于是在china.xml中添加如下代码,以实现两种方式的解析: 杭州 zhejiang 浙江 1 ...
分类:其他好文   时间:2014-06-20 09:53:03    阅读次数:249
hust 1027 Enemy Target!
题目描述In the Game Red Alert, a group of soviet infantry marches towards our base. And we have N Prism Tanks to defend our base. Suppose the coming infan...
分类:其他好文   时间:2014-06-11 07:18:54    阅读次数:285
uva Children's Game
非常巧妙的题目,巧用cmp,注意cmp的重载 #include #include using namespace std; string a[55]; bool cmp(string a, string b){ return a+b > b+a; } int main(int argc, char const *argv[]) { int n; while(cin >...
分类:其他好文   时间:2014-06-11 06:10:28    阅读次数:293
ACdream群赛1112(Alice and Bob)
题意:http://acdream.info/problem?pid=1112 Problem Description Here  is Alice and Bob again ! Alice and Bob are playing a game. There are several numbers.First, Alice choose a number n.Then he c...
分类:其他好文   时间:2014-06-10 14:48:56    阅读次数:236
unity game Developemnt in 24 hours 第20章 Audio 声音
声音1. 声音的使用涉及三个概念:()Listener ——监听声音的object,一个场景只能有一个Listener(2)声音源文件(3)声音剪辑clip —— 我理解的是吧源文件放到scene关联object就成为了一个clip2. 声音unity3d支持的格式包括mp3,wav,ogg等3D和...
分类:其他好文   时间:2014-06-10 12:01:30    阅读次数:295
Uva 11489 - Integer Game
Two players, S and T, are playing a game where they make alternate moves. S plays first.  In this game, they start with an integer N. In each move, a player removes one digit from the integer and p...
分类:其他好文   时间:2014-06-10 06:31:29    阅读次数:302
03微信公众平台 - 实现【天气查询】功能函数,返回一个文本字符串。
一、功能代码函数实现 private function _weather($city) { include("weather_cityId.php"); $c_name=$weather_cityId[$city]; if(!em...
分类:微信   时间:2014-06-08 21:05:51    阅读次数:1484
通过Pull方式解析xml文件
说明:此案例使用的是通过Sax方式解析xml文件这篇文章里的布局文件、City类和china.xml文件(此文件内包含两种格式),所以只需要完成MainActivity和PullXml就行了,在于展示如何使用Pull方式解析xml文件。 1. PullXml类的主要代码如下: public class PullXml { public List pullXml() { List enti...
分类:其他好文   时间:2014-06-08 10:34:04    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!