#include <iostream>
#include <windows.h>
#include <stdio.h>
#include <string>
#include <conio.h>
using namespace std;
void setCon(int);

int main(){
    int color = 0xB;
    setCon(color);
//=========================================================

//=========================================================
    //printf("\n\nPress <Enter> to exit");
    cout << "\n\nPress <Enter> to exit";
    _getch();
    return 0;
}
void setCon(int color)
{
    CONSOLE_FONT_INFOEX cfi;
    cfi.cbSize = sizeof cfi;cfi.nFont = 0;cfi.dwFontSize.X = 0;cfi.dwFontSize.Y = 25;cfi.FontFamily = FF_DONTCARE;cfi.FontWeight = FW_NORMAL;
    wcscpy_s(cfi.FaceName, L"Lucida Console");
    SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);
    HWND console = GetConsoleWindow();
    RECT r;
    GetWindowRect(console, &r); //stores the console's current dimensions
    MoveWindow(console, 4, 4, 1700, 1000, TRUE); // r.left, r.top, 1700 width, 1000 height
}
