- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 Windows和Ubuntu网络文件共享
右键选中需要共享的文件夹,选择属性->本地网络共享;选中共享此目录、允许其他人创建和删除这个文件夹里的文件、允许匿名登陆;配置好之后,点击修改共享。如果没有安装过samba服务,则会提升安装samba相关依赖。右键 我的电脑 -> 映射网络驱动器;配置文件夹路径,然后点击完成。通过我的电脑(此电脑)访问共项目录。如有需要,重启samba服务。输入用户名,以及密码。
2024-06-30 13:09:05
725
原创 LLVM基础系列--llvm::SmallVector与std::vector的区别
llvm::SmallVector是LLVM中独有的容器类,std::vector是C++标准库的容器类。简单来说,区别在于,llvm::SmallVector是一个针对小数组进行优化的结构。这种优化来自于对有限数量元素不执行堆分配。如果添加的元素数量超过了使用自动存储分配的元素数量,它将回退到的行为并分配越来越大的数组。当明确始终拥有少量元素时,可以带来性能优势。
2023-07-29 21:50:16
1158
原创 火焰图基本使用教程
火焰图基本使用教程1. 基本流程下载FlameGrapth包:https://github.com/brendangregg/FlameGraph,无需安装,直接使用。也可以直接使用命令git clone https://github.com/brendangregg/FlameGraph.gitperf recocrd -g...(记得要加-g,这样才会保留调用栈)抓去性能分析数据,会生成perf.data文件,在第二次使用perf record..后,新生成的perf数据为perf.da
2021-07-18 20:51:58
2001
原创 Qt开发之QSound应用记录
Qt开发之QSound应用记录头文件平台:VS2019+Qt5.12.6使用QSound类,需要添加multimedia扩展->Qt VS Tools->Qt Project Settting->General下的Qt Modules->点击后面的Module选中添加Multimedia->Finfish。源码中添加文件头#include <...
2020-04-13 11:00:49
600
原创 PAT_A1001 A+B Format (20 分)
题目Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specification:Each inpu...
2019-08-20 19:02:37
141
原创 PAT_A1006 Sign In and Sign Out (25 分)
题目At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s...
2019-08-11 22:46:00
204
原创 PAT_A1002 A+B for Polynomials (25 分)
题目This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the info...
2019-08-11 22:04:01
142
原创 PAT_A1065 A+B and C (64bit) (20 分)
题目Given three integers A, B and C in [−263,263][−2^{63},2^{63}][−263,263], you are supposed to tell whether A+B>CA+B>CA+B>C.Input Specification:The first line of the input gives ...
2019-08-07 21:49:52
211
原创 PAT_A1046 1046 Shortest Distance (20 分)
题目The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file co...
2019-08-07 21:40:07
171
原创 PAT_A1042 Shuffling Machine (20 分)
题目Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with ga...
2019-08-07 19:37:27
134
原创 PAT_A1041 Be Unique (20 分)
题目:Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104]. The first one who bet...
2019-08-07 19:24:19
141
原创 编译原理例题
编译原理例题写出算术表达式:A+B∗(C−D)+E/(C−D)↑NA+B*(C-D)+E/(C-D)↑NA+B∗(C−D)+E/(C−D)↑N(↑指乘方)(1)四元式(2)三元式(3)间接三元式(4)逆波兰记号解:四元式:(1) (−, C, D, t1)(1)\ (-,\ C,\ D,\ t_1)(1) (−, ...
2019-06-09 21:11:23
1284
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人