Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码在命令提示符下转储了大量数据。如何激活输出的“更多”选项,以便逐页查看输出?(微软视觉工作室)
例如。Matlab 有命令“更多”来做同样的事情!
谢谢。
使用 Windows 命令提示符,您可以附加| more到您的命令,例如,
| more
dir | more
没有“更多选择”。正如詹姆斯上面所说,有一个“更多”命令可用于对输出进行分页。
围绕输出函数创建包装函数。在这些函数中,跟踪换行符的数量。如果金额达到给定限制,请使用 暂停屏幕std::istream::ignore()。
std::istream::ignore()
否则,正如其他人所说,将输出通过管道传输到分页应用程序。