类型转换 public class Demo02 { public static void main(String[] args) { //强制转换 (类型)变量名 高-->低 int i = 128; byte b = (byte) i;//内存溢出 System.out.println(i); ...
分类:
其他好文 时间:
2021-06-10 17:53:43
阅读次数:
0
三角形模板 const int N = 1e5 + 50; const ld PI = acos(-1.0); const ld eps=1e-8; int sgn(ld x) { if(fabs(x)<eps)return 0; return x<0?-1:1; } struct Point { ...
分类:
其他好文 时间:
2021-06-10 17:53:30
阅读次数:
0
1 guy@guy-X9Ti:~$ sudo apt install gcc-arm-none-eabi 2 [sudo] guy 的密码: 3 正在读取软件包列表... 完成 4 正在分析软件包的依赖关系树 5 正在读取状态信息... 完成 6 下列软件包是自动安装的并且现在不需要了: 7 bam ...
分类:
其他好文 时间:
2021-06-10 17:50:05
阅读次数:
0
为什么需要用到懒加载? 现在人们都会浏览网页,在网页上会有很多图片,例如京东、淘宝等电商网站,图片非常多,那么在浏览时,服务器的压力会很大,不仅影响了渲染页面的速度,还浪费宽带,给我们带来了浏览的不便利。 懒加载原理 一张图片就是一个<img>标签,浏览器是否发起请求图片是根据<img>的src属性 ...
分类:
Web程序 时间:
2021-06-10 17:49:47
阅读次数:
0
1、 #include <stdio.h> #include <time.h> char data_file[] = "datatime.dat"; void get_data(void) { FILE *fp; if((fp = fopen(data_file, "r")) == NULL) pr ...
分类:
编程语言 时间:
2021-06-10 17:48:54
阅读次数:
0
转自:https://blog.csdn.net/wushuomin/article/details/80051295 1.pthread_create #include <pthread.h> int pthread_create( pthread_t *restrict tidp, //新创建的 ...
分类:
其他好文 时间:
2021-06-10 17:47:19
阅读次数:
0
#include <osg/Geode> #include <osg/MatrixTransform> #include <osg/ShapeDrawable> #include <osgGA/TrackballManipulator> #include <osgViewer/Viewer> #in ...
分类:
其他好文 时间:
2021-06-10 17:44:48
阅读次数:
0
<style lang="scss" scoped> /*取消tab页click蓝色下标线*/ .el-tabs__active-bar { background-color: transparent !important; } /*解决 elementUI 切换tab后 el_table 固定列下 ...
分类:
其他好文 时间:
2021-06-10 17:44:25
阅读次数:
0
处理JSON数据 有时候后端反过来的是同级的JSON数据结构,假设,里面每一条数据中的parentId对应的父级的folderId,顶层的parentId是0,此时,可以根据这两个条件来将JSON数据结构处理成树结构 const treeFn = (arr) => { const lsArr = a ...
分类:
Web程序 时间:
2021-06-10 17:43:38
阅读次数:
0
过去的知决定现在的行,现在的行决定未来的知。 可对人、事、想法、感觉等等,万物皆可为媒介,当对这个媒介提出问题需要答案的时候,不经思索脱口而出的就是你的知,这个知来自之前所有行所得到的结果。 每个媒介都会随着对它:不断更新的知——>来绝对现在的行——>现在的行决定未来的知。往复循环,不断被替换的知。 ...
分类:
其他好文 时间:
2021-06-10 17:41:26
阅读次数:
0