如何获取我的进程绑定到的控制台中的行字符数?
重新表述我的问题:控制台的字符宽度。
Windows 中默认设置为 80,但用户可以更改它,如何获取该值?
Rephrasing my question: width of a console in term of characters.
This in windows is set by default to 80 but user can change it, how to get this value ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
GetConsoleScreenBufferInfo
函数。You can use the
GetConsoleScreenBufferInfo
function.