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.
如何使用system功能将滚动条添加到控制台?
system
我system("MODE 100,50");用来设置自定义控制台窗口大小。
system("MODE 100,50");
什么可以更简单?
COORD newSize = {100,9999}; SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), newSize);
newSize 必须大于您当前的可见窗口区域