C语言函数参数的传递的学习 1.值传递 void Exchg1(int x, int y) { int tmp; tmp = x; x = y; y = tmp; printf("x = %d, y = %d\n", x, y); } int main() { int a = 4,b = 6; Ex ...
分类:
编程语言 时间:
2020-06-20 21:48:58
阅读次数:
80
using System.Diagnostics; try { } catch (Exception ex) { Trace.WriteLine(ex.StackTrace); } C# Trace 信息写入日志文件 要将Trace调试日志输出到日志文件,需要在app.config配置文件下添加一下 ...
转自:https://woodenrobot.me/2020/03/09/redis-lock/ 业界常用解决方案 基于 MySql 等数据库的唯一索引 基于 ZooKeeper 临时有序节点 基于 Redis 的 NX EX 参数 本文主要讲解基于 Redis 实现的分布式锁 分布式锁的特点 互斥 ...
分类:
编程语言 时间:
2020-06-17 18:31:52
阅读次数:
56
版本2.3.4: 在cocos中,自定义的类如果在构造函数里传参数,会有警告提示。 例如下面的类,在构造函数传入a,b参数 Test.ts const {ccclass, property} = cc._decorator; @ccclass export default class Test ex ...
分类:
其他好文 时间:
2020-06-15 22:51:02
阅读次数:
202
一、基础知识点 1、单引号双引号的区别:单引号不解释变量。 2、<< 的使用:这个的作用好像是与外面的指令交互的作用, #! /user/bin/bash # 用来对进入fdisk后的交互操作 fdisk /dev/sbd <<EOF n p 3 EOF #EOF代表的是括号 3、数学运算 1、ex ...
分类:
系统相关 时间:
2020-06-14 23:59:18
阅读次数:
119
Structural Information Often, the original problem formulation provides more insight into the structure of the problem. This can be exploited while ge ...
分类:
其他好文 时间:
2020-06-13 23:06:07
阅读次数:
78
直接求解 LL factor(LL x){ LL cnt = 0; for(int i=1;i<=sqrt(x);i++){ if(x%i==0){ if(x/i == i) cnt += i; // ex: 9 = 3 * 3 else cnt += i + x/i; } } return cnt ...
分类:
其他好文 时间:
2020-06-13 21:08:25
阅读次数:
98
前端开发中, 做适配是少不了的, 这就用到了css中的各种长度单位, 做一下总结 在css中, 长度单位分为以下几种 绝对单位: px、in、cm、mm、pt、pc 百分比单位: vw、vh、vmin、vmax、% 相对单位: em、rem、ex、ch 各单位介绍 px 不用过多介绍, 精确像素 i ...
分类:
Web程序 时间:
2020-06-13 12:40:37
阅读次数:
85
1074 Reversing Linked List (25分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For ex ...
分类:
其他好文 时间:
2020-06-13 00:48:49
阅读次数:
54
<!DOCTYPE > <html> <head> <meta charset=UTF-8"> <title>DOM增删表格中的元素</title> <link rel="stylesheet" type="text/css" href="ex_2_style/css.css" /> <script ...
分类:
编程语言 时间:
2020-06-13 00:38:03
阅读次数:
73