摘要: 《C++标准程序库》13.10.3 将标准 Streams 重新定向(Redirecting)通过“设置 stream 缓冲区”来重定向某个 sream。“设置 stream 缓冲区”意味 I/O stream 的重定向可由程控,不必借助操作系统。 1 #include <iostream> 2 #include <fstream> 3 4 using namespace std; 5 6 void Redirect(ostream &); 7 8 int main() 9 {10 cout << "the first row" 阅读全文
posted @ 2013-03-17 18:26 SubmarineX 阅读(4394) 评论(0) 推荐(0) 编辑