1 //经纬度转墨卡托 2 public MapPoint lonLat2Mercator(MapPoint lonLat) 3 { 4 MapPoint mercator = new MapPoint(); 5 do...
分类:
其他好文 时间:
2014-08-23 16:37:31
阅读次数:
819
一、创建文件~ PlayerLayer.h PlayerLayer.cpp 一般类名都会和文件名有关系的~(在这里当然是一样) 二、How to do? 1、首先就是放一个飞机~ CC_SYNTHESIZE(bool, _isAlive, isAlive);Sprite *_playerplane;...
分类:
微信 时间:
2014-08-23 15:11:40
阅读次数:
430
Given a m x n matrix,
if an element is 0, set its entire row and column to 0. Do it in place.
原题链接:
题目:给定一个m * n 的矩阵,如果有一个元素是0,将其所在行和列设为0.
思路:先记录下是0 的元素的位置,再去置0.
public void setZeroes(int[][] m...
分类:
其他好文 时间:
2014-08-23 12:43:50
阅读次数:
164
#if语法 ```sh if list then do something here elif list then do another thing here else do something else here fi ``` 基本上和其他脚本语言一样。没有太大区别。不过值得注意的是。[]里面的条件判断。 ##...
分类:
其他好文 时间:
2014-08-23 11:28:50
阅读次数:
187
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for...
分类:
其他好文 时间:
2014-08-23 11:14:10
阅读次数:
219
Description Tia Dalma: Come. What service may I do you? You know I demand payment. Jack: I brought payment. Look. An undead monkey. Top that. T...
分类:
其他好文 时间:
2014-08-23 11:13:50
阅读次数:
189
1、举例,比方说我想取出横坐标0-900 纵坐标0-400的坐标范围: do_all_pos()-> do_all_pos([],0,0). do_all_pos(Result,Length,Height)when Length<900 andalso Height=<400-> NewResult=[{Length,Height}|Result...
分类:
其他好文 时间:
2014-08-23 02:31:50
阅读次数:
222
编译MySQL的时候报错如下:/usr/local/src/lamp/mysql-5.5.37/vio/viossl.c:Infunction‘ssl_do’:/usr/local/src/lamp/mysql-5.5.37/vio/viossl.c:175:错误:‘SSL_OP_NO_COMPRESSION’未声明(在此函数内第一次使用)/usr/local/src/lamp/mysql-5.5.37/vio/viossl.c:175:错误:..
分类:
数据库 时间:
2014-08-23 02:30:30
阅读次数:
257
/*String Matching
Description
It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost"?
There...
分类:
其他好文 时间:
2014-08-23 02:24:09
阅读次数:
171
[转载]英文原文:The 10 Things You Should Do When You Have Your Next Web Idea 当你正和家人享受一个悠闲的午后,一个不错的想法突然出现在你的脑海里。不管它是一个 App 还是服务,或是一个新的概念。只要你把这个想法付诸实践,它就可能会...
分类:
其他好文 时间:
2014-08-22 19:25:09
阅读次数:
185