摘要: 服务端: //结构体 class ns_DownInfo{ char m_pBuffer[1024]; int m_nReadSize; bool m_bEof;};struct ns_getDownInfoResponse {ns_DownInfo return_;};int ns__DownF... 阅读全文
posted @ 2014-11-03 23:39 落雪成冰 阅读(323) 评论(0) 推荐(0) 编辑
摘要: lua中获取table长度常用的方法有两种 : 1:table={} print(#table) 2:arr={} table.getn(arr)两者最重要的区别还是存在的,前者 “#” 在下标索引不连续的时候会得到 0.(博主的测试而已,如有异议,请告知下,一起学习) 阅读全文
posted @ 2014-11-03 12:36 落雪成冰 阅读(14590) 评论(0) 推荐(0) 编辑