#include<stdio.h>
#include<windows.h>
int main()
{
char title[100];
HWND hwnd;
GetConsoleTitle(title,100);
hwnd=FindWindow(NULL,title);
MoveWindow(hwnd,100,100,300,300,TRUE);
return 0;
}
C语言 用代码设置窗口打开时在显示器显示的位置
hwnd,100,100,300,300,上下左右随便设置