2020.08.05 1、多线程 2、IPC、共享内存 3、bind 4、合并n个有序链表 (力扣原题 使用最小堆会快一些) #include <queue> using namespace std; struct ListNode { int val; ListNode* next; ListNo ...
分类:
其他好文 时间:
2020-08-20 18:20:10
阅读次数:
118
using UnityEngine; public class SwitchMaterial : MonoBehaviour { public Material M1, M2; // 贴图 void Update() { if (Input.GetKey(KeyCode.A)) { this.tra ...
分类:
其他好文 时间:
2020-08-19 19:48:48
阅读次数:
67
#include<iostream> #include<stdio.h> #include<string.h> #include<math.h> using namespace std; int fact(int n,int p) //十进制转为任意进制 (n是十进制数,p是要转化进制选择) { i ...
分类:
其他好文 时间:
2020-08-18 15:41:07
阅读次数:
103
c++ 字符串反转的3种方法 1、使用string.h中的strrev函数 #include <iostream> #include <cstring> using namespace std; int main() { char s[] = "hello"; strrev(s); cout<< s ...
分类:
编程语言 时间:
2020-08-18 15:36:13
阅读次数:
66
var factory = new ConnectionFactory(); factory.HostName = "localhost"; factory.UserName = "admin"; factory.Password = "admin"; using (var connection = ...
分类:
其他好文 时间:
2020-08-18 13:55:53
阅读次数:
61
这题真的是想了老半天,也不太会,看了看别人的,学习学习 1 #include<iostream> 2 #include<algorithm> 3 #include<vector> 4 #include<cmath> 5 using namespace std; 6 /*用于排序的二维数组*/ 7 i ...
分类:
编程语言 时间:
2020-08-18 13:13:41
阅读次数:
62
这道题的数据是不是有点水?还是题目描述有问题? #include<bits/stdc++.h> #define x first #define y second using namespace std; const int N=1005; typedef pair<int,int> PII; int ...
分类:
其他好文 时间:
2020-08-17 17:32:42
阅读次数:
60
加-减 之前总是嫌打高精烦,这次干脆打了个模板出来。 这篇主要是给新手讲的,如果你只是要co模板,点下面co即可。(不懂可以往下看) #include<cstdio> using namespace std; const int wei=100000; int a[100][wei],bz[100] ...
分类:
编程语言 时间:
2020-08-17 17:18:02
阅读次数:
63
脚本是附加在游戏物体上用于定义游戏对象行为的指令代码 附加到游戏物体的脚本类必须从MonoBehaviour类继承 脚本初始化: using System.Collections; using System.Collections.Generic; using UnityEngine; public ...
merge语法: MERGE INTO [target-table] USING [source-table sql] ON([conditional expression] and [...]...) WHEN MATCHED THEN [UPDATE sql] WHEN NOT MATCHED ...
分类:
数据库 时间:
2020-08-17 16:43:02
阅读次数:
70