The Atomic Reference Counter (Arc) type is a smart pointer that lets you share immutable data across threads in a thread-safe way. I couldn’t find any ...
分类:
其他好文 时间:
2021-01-01 12:32:52
阅读次数:
0
1. 基本的使用方法 1.1 加入项目依赖 (1)在pro文件中加入QT += webkit 或在cmakeList.txt中加入(本人未试过): find_package(Qt4 COMPONENTS Widgets WebKit REQUIRED) target_link_libraries(w ...
分类:
Web程序 时间:
2021-01-01 12:30:45
阅读次数:
0
在文件开始追加一行 1 使用sed(会改变文件编码为utf-8) find -name "*.cpp" -exec sed -i '1s@^@added line\n@' {} \; #sed insert append #第一行行前插入一行 sed -i '1i added line' main. ...
分类:
其他好文 时间:
2020-12-31 11:53:11
阅读次数:
0
实验七 文件(Last one) p.s最后一个实验居然是最坎坷的一个实验,怎么说呢,用的MacOS,一直在担心文件操作不能做,刚做的时候不断报错,上网查了半天,打开了路径开关,变成fail to find。心如死灰,选择到机房在Windows系统下做实验,结果结果,不知道是不习惯系统还是操作的问题 ...
分类:
其他好文 时间:
2020-12-30 11:10:04
阅读次数:
0
原题链接 参考直方图最大矩形那道题,边界点是到权值比它小的天数为止,所以单调栈是单调递增栈,这道题我们需要的是while循环后的边界点,如果在while循环里取第一个点反而会导致答案错误,因为存在这种情况: 7 5 3 如果取while循环里第一个点就会少算7 #include <iostream> ...
分类:
其他好文 时间:
2020-12-29 11:37:41
阅读次数:
0
递归实现 template<typename T> int binary_search(T arr[], int len, int left, int right, int find) { // 必要参数检查 if (NULL == arr || nullptr == arr || 0 > left ...
分类:
编程语言 时间:
2020-12-29 11:31:49
阅读次数:
0
package LeetCode_562 /** * 562. Longest Line of Consecutive One in Matrix * (Prime) *Given a 01 matrix M, find the longest line of consecutive one in ...
分类:
其他好文 时间:
2020-12-28 11:58:19
阅读次数:
0
B - Lucky Mask Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lu ...
分类:
其他好文 时间:
2020-12-25 12:22:13
阅读次数:
0
stl常用容器-string C++标准库定义了一种string类,定义在头文件<string> string封装了很多使用的办法: 查找find,拷贝copy,删除delete,替换replace,插入insert 不用考虑内存释放和越界,string管理char*分配的内存,每一次的string ...
分类:
其他好文 时间:
2020-12-25 12:10:04
阅读次数:
0
服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i “80”|wc -l 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 3)、统计已连接上的,状态为“established netstat -na|grep ESTABLISHE ...
分类:
Web程序 时间:
2020-12-25 11:50:10
阅读次数:
0