本章节将介绍如何与场景中的对象进行交互,接着上一章节的代码,我们往立方体对象 添加如下代码,并实现它的代理<HitEventDelegate> 代码: 点击代理,可以看到里面的方法,我们实现一下 代码: 运行项目,点击立方体,可以看到控制台打印了日志 通过这个代理,就可以和场景中的对象进行交互。本章 ...
分类:
移动开发 时间:
2018-04-02 00:11:12
阅读次数:
215
工作中遇到的需求,****代表标签数据别的信息: D01 ******** 1 ******** D01 ******** 2 ******** D01 ******** 3 ******** D01 ******** 4 ******** D02 ******** 1 ******** D02 * ...
分类:
编程语言 时间:
2018-04-01 13:16:32
阅读次数:
172
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Given an integer, convert it to a roman nu ...
分类:
其他好文 时间:
2018-03-25 18:18:35
阅读次数:
147
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. Given a roman numeral, convert it to an in ...
分类:
其他好文 时间:
2018-03-25 17:00:41
阅读次数:
237
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 思路分析: 1、熟悉罗马数字的规则。见LeetCode之Easy篇 ——(12)In ...
分类:
其他好文 时间:
2018-03-23 22:59:06
阅读次数:
228
图片中验证码为乱码原因是Linux系统和windows系统默认语言字体不一样,Linux中没有微软雅黑和Times New Roman字体。 解决办法:win+e -->c盘-->windows-->fonts打开页面 把微软雅黑和Times New Roman上传到linux服务器中的/usr/j ...
分类:
编程语言 时间:
2018-03-20 10:41:17
阅读次数:
322
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 罗马数字: I V X L C D M 1 5 10 50 100 500 1000 ...
分类:
其他好文 时间:
2018-03-19 00:37:00
阅读次数:
230
异常处理 总共有七中的异常情况: 1:reset 2:undefined instruct(不支持命令异常) 3:软件中断 4:指令预取失败异常 5:数据读取失败异常 6:中断 7:快速中断(比一般的中断处理速度快一些) 中断向量: 当中断发生时,处理器就会跳转到一个固定的地址去处理指令 .glob ...
分类:
其他好文 时间:
2018-03-17 15:27:26
阅读次数:
139
问题链接 "LeetCode 13. Roman to Integer" 题目解析 将罗马数字转换成普通数字。 解题思路 先简单了解一下什么是 "罗马数字" 。 基本字符:I,V,X,L,C,D,M 相应的阿拉伯数字表示为:1,5,10,50,100,500,1000 相同的数字连写、所表示的数等于 ...
分类:
其他好文 时间:
2018-03-11 17:49:24
阅读次数:
183
问题链接 "LeetCode 12. Integer to Roman" 题目解析 将普通数字转换成罗马数字。 解题思路 先简单了解一下什么是 "罗马数字" 。 基本字符:I,V,X,L,C,D,M 相应的阿拉伯数字表示为:1,5,10,50,100,500,1000 相同的数字连写、所表示的数等于 ...
分类:
其他好文 时间:
2018-03-11 17:32:01
阅读次数:
176