OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5c3e0
)
fix: 修正错误的模板表述
author
Margatroid
<i@margatroid.xyz>
Mon, 29 Jul 2019 11:51:09 +0000
(19:51 +0800)
committer
GitHub
<noreply@github.com>
Mon, 29 Jul 2019 11:51:09 +0000
(19:51 +0800)
docs/misc/io.md
patch
|
blob
|
history
diff --git
a/docs/misc/io.md
b/docs/misc/io.md
index
c74e31a
..
cfbbfff
100644
(file)
--- a/
docs/misc/io.md
+++ b/
docs/misc/io.md
@@
-189,7
+189,7
@@
inline void write(int x) {
## 使输入输出优化更为通用
-如果你的程序使用多个类型的变量,那么可能需要写多个输入输出优化的函数。下面给出的代码使用[C++ 中的 `template`
类](http://www.cplusplus.com/doc/oldtutorial/templates)实现了对于自定类型的输入输出优化,从而简化这一步骤(注意不适用于字符和实数)
。
+如果你的程序使用多个类型的变量,那么可能需要写多个输入输出优化的函数。下面给出的代码使用[C++ 中的 `template`
](http://www.cplusplus.com/doc/oldtutorial/templates)实现了对于所有整数类型的输入输出优化
。
```cpp
template <typename T>