摘要: #include #include #include using namespace std;const int FULL_LOGITUDE = 180;const int FULL_LATITUDE = 90;const int THE_PRIME_MERIDIAN = 3;class World { //地图的长度private: int width; int high; char** arr;public: World(string file) { width = 135; high = 36; char buff... 阅读全文
posted @ 2014-02-25 20:48 ggaaooppeenngg 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/yx0628/article/details/9419631 最近在做一个小功能,即照片连拍的过程中,每拍一张弹出AlertDialog输入添加文本后,画成水印在照片上。过程中遇到了一个问题,即第一张照片添加完毕后,进入第二张拍照,点击拍照返回即报错,是AlertDialog的问题,log如下: (我自己的情况是里面有textview,用来编辑的,不过差不多的情况,也解决了)java.lang.IllegalStateException: The specified child already has a parent. You must ca. 阅读全文
posted @ 2014-02-25 16:56 ggaaooppeenngg 阅读(1374) 评论(0) 推荐(0) 编辑
摘要: mgo 存储的时候是 用json.marshal(in interface{})的方法,内部调用了func (e *encoder) addDoc(v reflect.Value) { for { if vi, ok := v.Interface().(Getter); ok { getv, err := vi.GetBSON() if err != nil { panic(err) } v = reflect.ValueOf(getv) ... 阅读全文
posted @ 2014-02-25 15:33 ggaaooppeenngg 阅读(1458) 评论(0) 推荐(0) 编辑