C++ 知识笔记

2018.11.26

指针或引用的定义方法

指针有两种定义写法:

// * 靠近变量

int *p_type1;

// * 靠近类型

int* p_type2;

这两种定义方法其实是等效的, 但是我个人现在喜欢使用第二种写法, 即 * 靠近类型, 这样变量名就是变量名, 前面的才是它的类型(比如......

关于万圣节

2018.10.31

Allhallowtide: 万圣节季.

hallow 与 saint 同意, 意为圣徒. tide 此处不是潮汐之意, 意为 time, season, period of time, 即一段时间, 通常用于复合词. 比如 Christmastide, Yuletide, Easterti......

Use arrow keys in Perl debugger

2018.09.06

Install this module:

cpan -f Term::ReadLine::Perl

cpan -f Term::ReadKey

Reference: https://stackoverflow.com/questions/13783334/arrow-up-and-dow......

Bash Powerline

2018.08.29

Dodumentation:

https://powerline.readthedocs.io/en/master/overview.html

Installation:

pip install powerline-status

Show {repository_root}:

......

Perl 简易教程

2018.08.22

前言

正常情况下, Perl 定义变量直接赋值即可, 但是这样有时候会导致一些问题, 一般建议使用 use strict, 这样定义变量的时候必须使用 my 关键字, 例如:

use strict;

my $var = "var";

另外, Perl 默认的 pr......