liuqinh2s' blog

Do something cool!


  • 首页

  • 关于

  • 标签

  • 归档

  • 日记

  • 前端面试

  • 导航

  • 搜索

《APUE-3rd》 读书笔记 -- Unix System Overview

发表于 2018-05-22 | 更新于: 2026-06-12
字数统计: 5,883

Preperation Before Class

apue 编程环境搭建

Figure 1.3 List all the files in a directory

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "apue.h"
#include <dirent.h>

int main(int argc, char *argv[])
{
DIR *dp;
struct dirent *dirp;
if (argc != 2)
err_quit("usage: ls directory_name");
if ((dp = opendir(argv[1])) == NULL)
err_sys("can’t open %s", argv[1]);
while ((dirp = readdir(dp)) != NULL)
printf("%s\n", dirp->d_name);
closedir(dp);
exit(0);
}

这里简单说一下 apue 的编程环境搭建,实际上只需要用到一点点make、环境变量和gcc 命令的知识。

阅读全文 »

mathjax常用公式记录

发表于 2018-04-30 | 更新于: 2026-06-12
字数统计: 194

角度记法

  • 度数:$60^\circ$,$60^\circ$
  • 度数分:$60^\prime$,$60^\prime$
  • 弧度:$\frac{\pi}{2}$,$\frac{\pi}{2}$
  • 角度记法:$\angle A$,$\angle A$

三重环积分无法渲染的问题

在网上找了半天资料最终解决了,参考这个答案:How do you render a closed surface double integral?,做法是直接使用 Unicode 编码:\unicode{x222F},三重环积分的编码,参考这里:unicode-search.net,所以只要将$\oiiint$换成$\unicode{x2230}$即可正确显示三重环积分。如下:

$$\unicode{x2230}$$

阅读全文 »

数学基础公式推导

发表于 2018-04-25 | 更新于: 2026-06-12
字数统计: 326

今天看到下面这个公式,突然想我好像不会推导啊:

$\sin(\beta-\alpha) = \sin\beta\cos\alpha - \cos\beta\sin\alpha$

遂想如何推导,在 youtube 上找了一个视频:三角函数正余弦和角公式推导

阅读全文 »

Override Overload Overwrite

发表于 2017-11-14 | 更新于: 2026-06-12
字数统计: 1,605

我们都知道有些东西容易混淆,在加上中文翻译得乱七八糟,更加让人困惑。今天我要讲的这三位可就真是绝了。

它们是:Override、Overload、Overwrite。

阅读全文 »

Inside the C++ Object Model 系列笔记 四 -- The Semantics of Function

发表于 2017-10-23 | 更新于: 2026-06-12
字数统计: 1,568

c++支持三种类型的成员函数,分别为 static,nostatic,virtual。每一种调用方式都不尽相同。

阅读全文 »
1…20212223
liuqinh2s

liuqinh2s

113 日志
50 标签
RSS
GitHub Twitter
Links
  • liam
  • jiyanggg
  • 曾小乱 – 在描绘他的生活倒影
© 2026 liuqinh2s | Site words total count: 124.7k
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4