摘要: Lua中的table表非常灵活强大,可以随时加入和修改,但有时在多人协作和一些项目中有些凌乱,我们可以利用元表的性质来保护我们的一些表格。1.Lua中的只读表 function ReadOnlyTable (t) local proxy = {} local mt = { __index =... 阅读全文
posted @ 2015-08-28 21:46 风来夕林 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 今天在阿里云上搭建了相关环境,系统用的是centOS 6.5apache和vsftpd都好装,貌似阿里云上的centOS没有开启SELinux 以及 iptables有个问题卡了很久,apache无法直接访问由root用户创建的文件,因为没有相关权限用chmod -R 777 提一下权限就好 阅读全文
posted @ 2015-07-05 20:24 风来夕林 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 编译器:visual studio 首先配置好项目环境 1.引入lua5.1.lib,lub51.lib依赖项 2.引入库目录 3.开始写代码 a.c #include #include #include int add(lua_State *L) { int x = lua_tonumber(L, 1); int y = lua_tonumber(L, 2); ... 阅读全文
posted @ 2015-05-21 20:58 风来夕林 阅读(250) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct Node{ int data; struct Node *next;}node;//创建约瑟夫环node* create(int n){ node *head,*p,*s; int i; head = (... 阅读全文
posted @ 2015-05-03 20:40 风来夕林 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文
posted @ 2015-03-21 22:41 风来夕林 阅读(116) 评论(0) 推荐(0) 编辑
摘要: C#做的串口示波器,可以实现动态波形显示的效果。using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sy... 阅读全文
posted @ 2015-03-11 16:31 风来夕林 阅读(2781) 评论(0) 推荐(0) 编辑
摘要: 1 Apriori介绍Apriori算法使用频繁项集的先验知识,使用一种称作逐层搜索的迭代方法,k项集用于探索(k+1)项集。首先,通过扫描事务(交易)记录,找出所有的频繁1项集,该集合记做L1,然后利用L1找频繁2项集的集合L2,L2找L3,如此下去,直到不能再找到任何频繁k项集。最后再在所有的频... 阅读全文
posted @ 2015-01-18 21:47 风来夕林 阅读(4413) 评论(0) 推荐(0) 编辑