1.pom.xml文件(主要是添加依赖和插件) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XM ...
分类:
其他好文 时间:
2021-03-30 13:39:53
阅读次数:
0
/* 实现一个线程安全的队列 */ template <class T> class SafeQueue { public: SafeQueue(void):q(),m(),c() {} ~SafeQueue(void) {} // Add an element to the queue. void ...
分类:
编程语言 时间:
2021-03-18 14:12:09
阅读次数:
0
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:
其他好文 时间:
2021-03-15 11:24:45
阅读次数:
0
要了解最小生成树的概念,我们首先要知道生成树是什么 生成树的定义 一个有 n 个结点的联通图的生成树是原图的极小连通子图,生成树包含原图中的所有 n 个结点,并且有保持图连通的最少的边。 最小生成树的性质 1.容易想象,要保证n个节点联通,至少要有n-1条边,所以一个有n个节点的生成树必有n-1条边 ...
分类:
编程语言 时间:
2021-03-10 13:25:00
阅读次数:
0
一个unique_ptr"拥有“他所指向的对象。与shared_ptr不同,某个时刻只能有一个unique_ptr指向一个给定的对象。当unique_ptr被销毁时,它所指向的对象也被销毁。uniptr_ptr表达的是一种独占的思想。 初始化 #include <iostream> #include ...
分类:
编程语言 时间:
2021-03-10 13:24:43
阅读次数:
0
如何增? INSERT INTO pet VALUES ('旺财','周星驰','hamster','f','1999-03-30',NULL); 如何删? delete from pet where name = 'Fluffu'; 如何修改? update pet set name = '旺旺财 ...
分类:
数据库 时间:
2021-03-02 12:23:15
阅读次数:
0
1,新建一个USer Control ChatListItemControl 建立一个ContentControl,并使用Style.并将其使用d:DataContext设定设计时的绑定内容. , 设定事件MouseEnter 和 MouseLeave设定Border--的背景色.这种利用外包Bor ...
分类:
其他好文 时间:
2021-03-01 13:44:10
阅读次数:
0
今天在现场看到一套S7 400H的PLC,ROCK0的CPU模板stop等长亮橙色,REDF长亮红色,MSTR长亮橙色,rack0长亮橙色。ROCK1的CPU模板EXTF长亮红色,STOP长亮橙色,REDF长亮红色,rock1长亮橙色。153-2模板也有报错。在线看诊断信息,出现过很多错误,大概的意 ...
分类:
其他好文 时间:
2021-03-01 13:14:24
阅读次数:
0
Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 to n. Examp ...
分类:
其他好文 时间:
2021-02-20 12:13:36
阅读次数:
0
组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of ...
分类:
编程语言 时间:
2021-02-18 13:37:18
阅读次数:
0