09 2016 档案

摘要:项目进入上线阶段了, 有一些地方需要总结和优化. 我发现UI一改变,我就要拖很久的UI。 UI结构发生改变我还必须给一些变量设置好引用,后来我去看别人预设的时候组件拖放的变量至少10个以上, 它们一旦丢失了引用了, 作为一个外人就很难把他们关联起来. 预设就定义了m_xxx名字必须和GameObject名字一样, 这样就方便其他人帮你修复预设的引用啦. 今天就突然想起写一个辅助用具, 一键把... 阅读全文
posted @ 2016-09-18 14:54 盘子脸 阅读(2290) 评论(0) 推荐(0)
摘要:#include "stdio.h" int search(int ary[], int value, int len); int main(void) { int ary[6] = { 1, 2, 3, 4, 5, 6 }; int index = search(ary, 4, 6); printf("%d\n", index); index = se... 阅读全文
posted @ 2016-09-14 11:28 盘子脸 阅读(522) 评论(0) 推荐(0)
摘要: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 盘子脸 阅读(1530) 评论(0) 推荐(0)