1. package LH; public class Point { int x; int y; Point() { } Point(int x0, int y0) { this.x = x0; this.y= y0; } void movePoint(int dx,int dy) { this. ...
分类:
其他好文 时间:
2020-04-30 15:47:53
阅读次数:
55
1、定义一个点类Point,包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point(intx0,y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1、p2,分别调用movePoint方法后,打印p1和p2的坐标。[必 ...
分类:
其他好文 时间:
2020-04-30 15:09:48
阅读次数:
53
比较容易理解得两个 Unity #pragma multi_compile说明(简单得代码实例说明) https://blog.csdn.net/ak47007tiger/article/details/100007655 让我们好好聊聊Unity Shader中的multi_complie htt ...
分类:
编程语言 时间:
2020-04-29 23:34:54
阅读次数:
65
https://blog.csdn.net/ak47007tiger/article/details/100007655 multi_compile 作用 根据编译选项产生shader变体 避免分支语句导致的性能下降 主要用于在代码中选择shader变体 Unity在打包时会把所有multi_com ...
分类:
编程语言 时间:
2020-04-29 23:22:06
阅读次数:
123
go 里面虽然没有 public 关键字,但是方法名首字母大写也能实现相同的功能,不过有时候也会出一些没想到的情况。 调用不同的包里的方法需要引入对应的包,但是调用同一个包里不同文件的方法呢?按道理是可以直接使用的,但是在使用的时候却报错了 我是直接使用 来运行的,这时候 go 只编译了 main. ...
分类:
其他好文 时间:
2020-04-28 17:12:38
阅读次数:
65
image.png image.png image.png image.png image.png image.png image.png image.png image.png GBDT 调参 image.png image.png image.png image.png image.png im ...
分类:
其他好文 时间:
2020-04-28 15:05:02
阅读次数:
72
原文:最通俗易懂的Redis发布订阅及代码实战 发布订阅简介 除了使用List实现简单的消息队列功能以外,Redis还提供了发布订阅的消息机制。在这种机制下,消息发布者向指定频道(channel)发布消息,消息订阅者可以收到指定频道的消息,同一个频道可以有多个消息订阅者,如下图: Redis也提供了... ...
分类:
其他好文 时间:
2020-04-28 00:36:19
阅读次数:
56
package com.cn;/** * 题目描述 * 利用字符重复出现的次数,编写一个方法,实现基本的字符串压缩功能。比如,字符串“aabcccccaaa”经压缩会变成“a2b1c5a3”。若压缩后的字符串没有变短,则返回原先的字符串。 * * 给定一个string iniString为待压缩的串 ...
分类:
其他好文 时间:
2020-04-27 21:01:15
阅读次数:
74
服务器版本: 腾讯云 Cent OS 7.6 项目运行环境: Net Core 3.1 工具: Xshell , Xftp 第一步 更新并安装 Net core 运行环境 #注册 Microsoft 密钥。注册产品存储库。安装必需的依赖项。 sudo rpm -Uvh https://package ...
分类:
Web程序 时间:
2020-04-27 17:43:50
阅读次数:
274