自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 Word of the Day

preeminent adjective pree-EM-uh-nunt more important, skillful, or successful exact verb ig-ZAKT to call for forcibly or urgently and obtain to call for as necessary or desirable gulosity noun goo-LAH-suh-tee excessive appetite: greediness sarcophagus

2022-01-06 17:02:00 286

原创 Qt学习笔记

信号和槽的参数必须一致。

2024-06-13 14:14:49 248

原创 华为主管面准备

自我介绍 谈谈项目,遇到什么问题,怎么解决的,有什么收获 你觉得你有什么缺点 参考资料 华为通用软件开发面试(一二+主管面)

2022-03-31 09:07:35 9917

原创 chess基础

scholar’s mate e4 e5 qh5 kc6 bc4 bc5 qf7# scholar’s mate defense: queen’s knight e4 e5 bc4 kc6 qh5 qe7/qf6 ? g6 scholar’s mate defense: king’s knight e4 e5 bc4 kf6 king’s gambit e4 e5 f4 f4 kf3 to stop qh4 kc6 d4 d6 bf4 kf6 kc3 ? bc4 ? castling k..

2022-03-24 14:13:59 235

原创 华为机试复习

1. 杂乱知识点 判断x是否为素数(质数) bool is_prime(int x) { for (int i=2; i<=sqrt(x); i++) if (x%i == 0) return false; return true; } 栈的使用方法 stack<int> s; int 5; s.push(5); bool b = (s.size() != 0); int y = s.top(); if (b == true) s.pop(); 排列组合的使用方法 vector

2022-03-24 14:09:43 386

原创 C++面经

placement new normal new allocates memory constructs an object in allocated memory placement new seperate above two things we can pass a pre-allocated memory and construct an object in the passed memory new allocates memory in heap, whereas placement ne

2022-03-17 22:44:26 7521

原创 QtMqtt安装

QtMqtt。

2022-03-10 16:47:33 1478 1

原创 华为机试书签

note1. again! ctrl + F + again! to find the problems that need a double check hj7. casting float i; int j = (int) i; hj9. unordered_set unordered_set reverse(str.begin(), str.end()) set.count© set.insert© hj46. sub string string s; s.substr(0, 3); // 3 is

2022-02-19 22:11:05 395

原创 基础排序算法

选择排序 算法描述(从小到大) 首先找到数组中最小的元素,并将这个元素与数组的第1个元素交换位置。然后找数组中剩下的元素中最小的元素,再与数组的第2个元素交换位置。以此类推完成排序。 代码 vector<int> selection_sort(vector<int>& nums) { int n = nums.size(); for (int i=0; i<n; i++) { int min_index = i; for (int j=i+1; j<n

2022-02-11 12:48:17 500

原创 Java基础

1. syntax main() method public class Main { public static void main(String[] args) { System.out.println("Hello"); } } Every line of code that runs in Java must be inside a class. In our example, we named the class Main. A class should always start wi

2022-01-07 11:40:56 797

原创 Makefile基础

Definitions Targets: file names separated by spaces; typically one target per rule; the default target is the first target Commands: series of steps typically used to make the target(s); start with a tab character Prerequisites: also called “dependencies”

2022-01-06 17:01:25 107

原创 Go Context - Cancelation and Propagation

import "context"! view context package source code! see example code for a server that uses contexts! view golang documentation about context! 假设你需要制作一个三明治,于是你安排了三个人分别去买番茄、面包和火腿。买火腿的人到了超市后发现没有火腿了,于是叫超市的店员给他现场制作一个火腿。买面包和番茄的人分别在去面包店和番茄店的路上。 这时你突然决定不吃火腿了,为了不

2022-01-06 17:00:51 231

原创 Go Concurrency

Basics What is a thread? A thread is a path of execution within a process. Why multi-threading? The idea is to achieve parallelism by dividing a process into multiple threads. For example, in a browser, multiple tabs can be different threads. Process and

2022-01-06 17:00:15 151

原创 Go Methods and Interfaces

Method A method is a function with a special receiver argument. func (v Vertex) Abs() float64{ return math.Sqrt(v.X*v.X + v.Y*v.Y) // In this example, the `Abs` method has a receiver of type `Vertex` named `v` } // is equivalent to (in terms of functiona

2022-01-05 16:52:36 272

原创 Go Basics

Packages package main import ( "fmt" "math/rand" ) Exported names func main() { fmt.Println(math.Pi) } Functions func add(x, y int) int { return x + y } // multiple results func swap(x, y string) (string, string) { return y, x } // named-return va

2022-01-05 11:04:03 350

原创 Git Commands

echo -e "First line.\nSecond line." >> file_name.txt is a shortcut of two commands. git add . puts all files into “Index”. master is a reference to the end of a branch. By convention (and by default) this is usually the main integration branch, but .

2022-01-05 10:37:45 429

原创 Charles和iPhone抓包

声明:本文转载自 https://www.charlesproxy.com/download 下载Charles 下载方式1 - 官网下载地址:Charles官方网站下载! 下载方式2 - 如遇官网下载慢,点击这个链接下载:国内网站下载! 配置Charles 主机配置 破解。点击这里下载破解文件! 打开Charles,Click “Help” -> SSL Proxying -> Install Charles Root Certificate 打开钥匙串,点击Charles Proxy

2022-01-05 10:37:03 1475

原创 C语言基础

Array It is often useful to think of an array as a collection of variables of the same type. All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest to the last element. Declaring Arrays the t

2022-01-05 10:36:34 634

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除