会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
叶图
博客园
首页
新随笔
联系
订阅
管理
2015年8月20日
Unity绘制GUI连连看(尚未完善效果和重置)
摘要: OneImage.cspublic class OneImage : MonoBehaviour{ public int row, col; public Rect rect; public Texture texture; public bool walkable = tr...
阅读全文
posted @ 2015-08-20 09:22 叶图
阅读(1531)
评论(0)
推荐(0)
2015年8月19日
Unity中OnGUI绘制贪吃蛇
摘要: Square.cs :public class Square : MonoBehaviour{ public int row, col; public Rect rect; public Texture texture; /// /// 1向上 2向右 3向下 4向左 //...
阅读全文
posted @ 2015-08-19 21:27 叶图
阅读(634)
评论(0)
推荐(0)
2013年11月15日
辗转相除法求两个数的最大公约数和最小公倍数
摘要: 最大公约数:int rmd(int x, int y)/*x为较大的数,y为较小的数 */{ int t = x%y; if (0 != t) { rmd(y, t); } else { return y; }}最小公倍数:int dmr(int x, int y, int xy)/* x为较大的数,y为较小的数,xy为两数的乘积,最小公倍数为两个数的乘积除以最大公约数 */{ int t = x%y; if (0 != t) { dmr(y, t, xy); } else { return xy/y; }}
阅读全文
posted @ 2013-11-15 20:20 叶图
阅读(366)
评论(0)
推荐(0)
公告