Код: Выделить всё
#include
#include
using namespace std;
int main(void)
{
system("mode con cols=62 lines=34");
return 0;
}
Это проблема Windows 11 или есть другой способ?
Я тоже попробовал это:
Код: Выделить всё
#include
#include
using namespace std;
void SetConsoleSize(int width, int height)
{
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
COORD bufferSize = { (SHORT)width, (SHORT)height };
if (!SetConsoleScreenBufferSize(hOut, bufferSize))
{
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79152088/how-to-change-console-size-on-windows-11[/url]
Мобильная версия