码迷,mamicode.com
首页 >  
搜索关键字:stream    ( 10730个结果
cout<<endl 本质探索
C++中,有一种对象叫操控器(manipulators),专门用来操控stream的对象,在C++标准中,预定义好几种操控器,常见的有: flush 刷新output缓冲区,将内容写入输出设备 endl 向缓冲区插入换行符号并刷新,将内容写入输出设备 ends 向缓冲区插入字符串终止符号,通常是'\...
分类:其他好文   时间:2015-03-30 12:41:58    阅读次数:124
USB 传输协议
PipeUSB的pipe的两端分别指的是USB host端的内存区域,和设备端的endpoint。pipe分为两类,一类是stream pipe, 另一类是message pipe。两类的主要区别是,message pipe发送的数据,都是usb协议里规定好的结构,而steam pipe发送的数据则...
分类:其他好文   时间:2015-03-30 10:58:30    阅读次数:191
Android Bitmap、BitmapDrawable、Stream转换整合
package com.soai.imdemo; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory;...
分类:移动开发   时间:2015-03-30 09:37:14    阅读次数:161
【SICP练习】144 练习3.82
练习3-82原文Exercise 3.82. Redo exercise 3.5 on Monte Carlo integration in terms of streams. The stream version of estimate-integral will not have an argument telling how many trials to perform. Instead,...
分类:其他好文   时间:2015-03-29 16:37:17    阅读次数:162
【SICP练习】143 练习3.81
练习3-81原文“random” numbers. Produce a stream formulation of this same generator that operates on an input stream of requests to generate a new random number or to reset the sequence to a specified value...
分类:其他好文   时间:2015-03-29 16:37:04    阅读次数:151
【SICP练习】142 练习3.77
练习3-77原文Exercise 3.77. The integral procedure used above was analogous to the “implicit” definition of the infinite stream of integers in section 3.5.2. Alternatively, we can give a definition of inte...
分类:其他好文   时间:2015-03-29 13:45:57    阅读次数:101
【SICP练习】140 练习3.71
练习3-71原文代码(define (Ramanujan s) (define (stream-cadr s) (stream-car (stream-cdr s))) (define (stream-cddr s) (stream-cdr (stream-cdr s))) (let ((scar (stream-car s))...
分类:其他好文   时间:2015-03-29 12:21:38    阅读次数:122
【SICP练习】141 练习3.72
练习3-72原文Exercise 3.72. In a similar way to exercise 3.71 generate a stream of all numbers that can be written as the sum of two squares in three different ways (showing how they can be so written). 代码...
分类:其他好文   时间:2015-03-29 12:17:48    阅读次数:147
【SICP练习】136 练习3.67
练习3-67原文Exercise 3.67. Modify the pairs procedure so that (pairs integers integers) will produce the stream of all pairs of integers (i,j) (without the condition i < j). Hint: You will need to mix in...
分类:其他好文   时间:2015-03-29 10:55:03    阅读次数:160
【SICP练习】135 练习3.66
练习3-66原文Exercise 3.66. Examine the stream (pairs integers integers). Can you make any general comments about the order in which the pairs are placed into the stream? For example, about how many pairs...
分类:其他好文   时间:2015-03-29 10:55:03    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!