转载: C/C++: How do you set GDB debug flag (-g) with cmake? – Bytefreaks.net # Solution 1: Modify the CMakeLists.txt file Add the following line to your CMakeLists.txt file to set the compilation mode to Debug (non-optimized code with debug symbols): 1set(CMAKE_BUILD_TYPE Debug) Add the following...

# 日本文字的构成 私【わたし】昨日【きのう】SONY のカメラを買【か】いました。 # 汉字 山【やま】 水【みず】 山水【さんすい】 # 中日汉字字形比较 完全相同:山 水 教室 学校 大同小异:涼 (凉) 強 (强) 差异较大:仏 (佛) 假 (仮) 简 (簡) 难 (難) 模仿创造的国字:峠 畑 # 中日汉字字义比较 中日同义:日本 学生 教室 学校 中日异义:手紙 (信) 新聞 (报纸) 丈夫 (结实) 愛人 (情人) # 日本汉字的发音方式 音读:模仿中国古汉语发音。 山水【さんすい】 森林【しんにん】 親友【しんゆう】...

# Sorce Files swap.h 1void swap(int &a, int &b); swap.cpp 123456#include "swap.h"void swap(int &a, int &b){ (a ^= b), (b ^= a), (a ^= b);} main.cpp 12345678910111213141516171819202122#include <iostream>#include...

转载: ISO 8601: the better date format If you haven’t been living under a rock, you’ve probably heard that there are different date formats in the world such as the American one (mm/dd/yyyy) and the European one (dd.mm.yyyy). If you’re smart enough, you’ve probably also noticed that the American one...

# grep grep 是文本查找命令,可以通过正则查找匹配。 1234567891011$ grep 'root' passwdroot:x:0:0:root:/root:/bin/bash$ grep '^\w\{4\}:'...

转载: Hashing in Action Understanding bcrypt The bcrypt hashing function allows us to build a password security platform that scales with computation power and always hashes every password with a salt. In previous posts to this Authentication Saga, we learned that storing passwords in plaintext must...

转载:【必须学好】字典、哈希与 Map_niu0147 的专栏 - CSDN 博客 在实际问题中,按照给定的值进行数据查询是经常遇到的,比如,在电话号码簿中查询某个人的电话号码;在图书馆中按照 ISBN 编号查找某本书的位置;在地图中按照坐标查找某个地点的地名等等。为此,人们创造了一种能够根据记录的关键码 (也就是用以标识数据在记录中的存放位置的数据项) 方便的检索到对应的记录信息的数据结构,这就是字典 (Dictionary)。 #...

转载: Discovering Python 3’s pathlib – Dante’s Python musings The pathlib is one of the new features in Python 3 I loved immediatly when I recognized it’s advantages. The pathlib a sort of a swiss knife tool and more than capable to replace os.path because it gives object orientated programming a...

转载:【Python】XML の要素・属性・内容を削除する (ElementTree) | 鎖プログラム # サンプル XML # sports.xml 1234567891011<?xml version="1.0" encoding="UTF-8" ?><sports> <sport order="001"> <name>サッカー</name>...

转载: Draw Diagrams With Markdown Typora supports some Markdown extensions for diagrams, once they are enabled from preference panel. When exporting as HTML, PDF, epub, docx, those rendered diagrams will also be included, but diagrams features are not supported when exporting markdown into other file...