Skip to content

Commit edbcfe0

Browse files
committed
todos
1 parent 68bf80d commit edbcfe0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

iostream.stdio.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ int main() {
241241

242242
> 小贴士:如果在多线程中并行 `<<` 输出到 cout,可能会出现黏行现象,这是因为每一条单独的 `<<` 操作是原子的(cout 是自带锁的同步流),而连续多条 `<<` 之间并不,即使是同一行上写的连续 `<<` 也不行,原因分析和解决方案见 ^[thread.osyncstream]
243243
244-
### 不推荐 `std::endl`
245-
246244
## 输入流
247245

248246
`std::cin` 是标准输入流,只读。对应于 C 语言的 `stdin` ^[cstdio.stdio]
@@ -307,6 +305,8 @@ $ 1 2
307305

308306
`std::cout``std::clog` 输出流具有行缓冲 ^[iostream.buf]
309307

308+
TODO
309+
310310
### `std::cerr``std::clog` 的区别
311311

312312
`std::cerr` 禁用了行缓冲,每次 `<<` 后都会自动强制刷新缓冲区 (flush buffer)。
@@ -321,6 +321,10 @@ $ 1 2
321321

322322
关于输出流的缓冲与刷新机制,以及关闭输出缓冲的方法,参见 ^[iostream.buf]
323323

324+
### 不推荐 `std::endl`
325+
326+
TODO
327+
324328
## 重定向
325329

326330
### 输入流重定向

0 commit comments

Comments
 (0)