✺
include<windows.h> #include<stdio.h>int main() { HDC hdc = GetWindowDC(GetForegroundWindow()); char command; printf("명령어를 입력하시오(r또는 c): "); command = getchar(); if (command == 'r'){ Rectangle(hdc, 100, 100, 200, 200); } else if (command == 'c'){ Ellispe(hdc, 100, 1000, 200, 200); } else { printf("잘못된 명령어입니다.\n"); } return 0; }