Is there a library function that can be used to set the default console size for a program?
Is there a library function that can be used to set the default console size for a program?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Somebody help!!!
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
The easiest way that I've found of have full control of how a console looks is using CreateProcess(), from another program and filling the STARTUPINFO struct with the desired values (you can set the exact screen size for the console like a windows app).
Alternatively, you can set the size using SetConsoleScreenBufferSize() and SetConsoleWindowInfo().
zen