《Accelerated C++中文版》章节试读

出版社:机械工业出版社
出版日期:2008-1-1
ISBN:9787111224044
作者:(美)克尼格(Koenig,A.),(美)莫(Moo,B.E.)
页数:293页

《Accelerated C++中文版》的笔记-chapter1 - chapter1

 When we ask the library to read a string, it begins by discarding whitespace characters (space, tab, backspace, or the end of the line) from the input, then reads characters into name until it encounters another whitespace character or end-of-file.
In general, the input-output library saves its output in an internal data structure called a buffer, which it uses to optimize output operations.
There are three events that cause the system to flush the buffer. First, the buffer might be full, in which case the library will flush it automatically. Second, the library might be asked to read from the standard input stream. In that case, the library immediately flushes the output buffer without waiting for the buffer to become full. The third occasion for flushing the buffer is when we explicitly say to do so.
Writing the value of std::endl ends the line of output, and then flushes the buffer, which forces the system to write to the output stream immediately.
The second new idea is that we can use + to concatenate a string and a string literal-or, for that matter, two strings (but not two string literals).
wchar_t
Built-in type intended to hold "wide characters," which are big enough tohold characters for languages such as Japanese.

《Accelerated C++中文版》的笔记-第1页 - 全书笔记

http://www.cnblogs.com/superpig0501/p/3973631.html


 Accelerated C++中文版下载 更多精彩书评


 

外国儿童文学,篆刻,百科,生物科学,科普,初中通用,育儿亲子,美容护肤PDF图书下载,。 零度图书网 

零度图书网 @ 2024