以前有很多关于将stdout/stderr重定向到文件的问题.有没有办法将stdout/stderr重定向到字符串?
c c++ stdout stderr
c ×1
c++ ×1
stderr ×1
stdout ×1