上一页 1 2 3 4 5 6 7 ··· 16 下一页
摘要: C语言: // ConsoleApplication3.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "stdio.h" #include "limits.h" int count_bits(unsigned x) { unsigned int bits = 0; while (x) { ... 阅读全文
posted @ 2016-09-14 10:00 盘子脸 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Text; public class RefPrint { public static PrintLog PrintTool; private sta... 阅读全文
posted @ 2016-07-21 17:17 盘子脸 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 在公司也有大半年的日子了, 0.0没想到游戏行业人流量巨大,我已经是客户端部门里面最老的程序员了. -.- 想着我第一次进公司正式写业务逻辑非常紧张, 以前都是帮其他公司打打杂,接入一下支付的SDK. 经过了半年的业务逻辑编写,学习到主程教我的CRUD(增删改查业务逻辑). 今天来分享下我制作背包过程中的问题. 单元格的需求 我想你的背包应该是一个个单元格组成的如下图: ... 阅读全文
posted @ 2016-07-16 00:21 盘子脸 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 最近写一个无限来回翻页UI, 从第一页向后翻页就到达最后一页. 写了一个函数输入一个数字转换成”页区间之间的数字” using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleA... 阅读全文
posted @ 2016-06-29 18:10 盘子脸 阅读(642) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main... 阅读全文
posted @ 2016-05-30 22:56 盘子脸 阅读(722) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using System.Diagnostics; using System; public class PerformanceTest { public static PerformanceData Execute(Action action, int runCount) { ... 阅读全文
posted @ 2016-05-11 17:18 盘子脸 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 开始制作好友系统了, 发现有一个UI跟QQ的面板一模一样. 于是就写了一个公共的下拉滚动框.需要把按钮的中心点(pivot.y = 1),描点为最上方 直接上图吧 代码如下: using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.EventSystems; using ... 阅读全文
posted @ 2016-04-07 16:05 盘子脸 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: 代码测试的由来 上几个星期上面分配给我一个装备系统,我经过了几个星期的战斗写完90%的代码. 后来策划告诉我需求有一定的改动,我就随着策划的意思修改了代码. 但是测试(Xu)告诉我装备系统很多功能都用不上了. Xu: 我有300多项测试用例,现在有很多项都无法运行了. 你修改了部分代码我又要全部跑一边, 我只能告诉你,我只能大概看一遍了. 之后我就买了本单元测试的书籍,向项目中引用代码测试的概念... 阅读全文
posted @ 2016-04-01 15:09 盘子脸 阅读(2490) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 洗扑克牌 { class Program { static void Main(string[] args)... 阅读全文
posted @ 2016-02-19 12:43 盘子脸 阅读(2666) 评论(2) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 约瑟夫环算法 { class Program { const int Num = 41; c... 阅读全文
posted @ 2016-02-18 15:02 盘子脸 阅读(933) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 16 下一页