Hilvcha's Notes


  • Home

  • Categories

  • Archives

  • Tags

C++8-IO库

Posted on 2017-11-25 | In c++primer5th
istream ifstream istringstream
ostream ofstream ostringstream

iostate_type:
badbit(崩溃) failbit(单次失败) eofbit(结束) goodbit(安全)

judge_state:
s.eof() s.fail() s.bad() s.good() s.clear()(复位所有) s.(flags)(只复位flag) s.setstate(flags) s.rdstate()(当前状态)

Read more »

python

Posted on 2017-11-07 | In python

一千行入门python

Read more »

Lec2a-高阶过程

Posted on 2017-08-11 | In Sicp

抽象概括出有价值的公共模式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(define (sum-int a b)
(if (> a b)
0
(+ a
(sum-int (1+ a) b))))
;
(define (sum-sq a b)
(if (> a b)
0
(+ (square a)
(sum-sq (1+ a) b))))
;
(define (pi-sum a b)
(if (> a b)
0
(+ (/ 1 (* a (+ a 2)))
(pi-sum (+ a 4) b))))

Read more »

Lec1b-计算过程

Posted on 2017-08-01 | In Sicp

Locke 在 An Essay Concerning Human Understanding(1690) 中将人类的心智活动归为三种表现:

  • 将几种简单的认识组合为一种复合认识,从而产生复杂的认识

  • 将两种认识进行对比,无论简单或复杂。不将他们合二为一,从而得到对于他们相互联系的认识。

  • 将有关认识与那些在实际中和它相伴的其他认识隔离开来,得到普遍的认识。此乃抽象。

Read more »

Lec1a-Lisp概览

Posted on 2017-07-30 | In Sicp

程序很像一个黑箱,应用一些规则处理数据得到输出。这在数学上来讲就是一个函数。可是耦合的关系使它们不能像数学函数那样灵活组合,而函数式的特性使得它放宽现实中程序的限制,输入的可以是另一个程序(函数),而它本身也可以作为数据传入其他函数,从而像数学中应用的形式化方法一样,更好的抽象滴描述这个世界。

Read more »

http请求概览

Posted on 2017-07-29 | In 计算机网络

http 是一套计算机通过网络进行通信的规则。它是无状态的协议,浏览器与服务器之间不需要建立持久链接。只要遵循request/response模型,之后就可以关闭连接。

Read more »
Hilvcha

Hilvcha

6 posts
4 categories
9 tags
GitHub Weibo
© 2017 Hilvcha
Powered by Hexo
Theme - NexT.Mist