
實現string類,用于學習 拷貝構造函數/拷貝賦值運算符/移動構造函數/移動賦值運算符
題目描述 Given an integer n and an integer start. Define an array nums where...
題目描述 Given the array candies and the integer extraCandies, where candies...
題目描述 Given an array nums. We define a running sum of an array as running...
RAII慣用法:C++資源管理的利器[https://mp.weixin.qq.com/s?__biz=MzIwNTc4NTEwOQ==&mid...
當定義一個類時,我們顯式地或隱式地指定在此類型的對象拷貝,移動,賦值和銷毀時做什么 一個類通過五種特殊的成員函數來控制這些操作,包括:拷貝構造函...
12.1.3 shared_ptr 和 new 結合使用 定義和改變 shared_ptr 的其他方法 不要使用 get 初始化另一個智能指針或...
在 set 的基礎上,加一個 score 值 之前 set 是 k1 v1 v2 v3, 現在 zset 是 k1 score1 v1 scor...
key-value 模式不變,但 value 是一個鍵值對 hset / hget hmset / hmget / hgetall / hdel...