본문 바로가기

영넌 개발로그

검색하기
영넌 개발로그
프로필사진 영넌

  • 분류 전체보기 (71)
    • 설치 (6)
    • 코딩 (60)
      • C++ (44)
      • python (1)
      • ML , Deep (13)
      • 캐글 (0)
    • 알고리즘 연습 (5)
      • 이론 (5)
      • python 프로그래머스 (0)
Guestbook
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록windows 콘솔 그림 (1)

영넌 개발로그

[C++ 기초] 객체의 이해, 원 그리기

: 윈도우즈에서 콘솔창에 그림그리기 위한 헤더 class 이름 : MY_CIRCLE do_draw() : Ellipse(타원) 그리기 #include #include class MY_CIRCLE { public: int left, right, top, bottom; //좌우상하 좌표 MY_CIRCLE(int l, int t, int r, int b) : left(l), top(t), right(r), bottom(b) { } void do_draw() { HDC hdc = GetWindowDC(GetForegroundWindow()); Ellipse(hdc, left, top, right, bottom); } MY_CIRCLE Clone() { return *this; } MY_CIRCLE& CloneR..

코딩/C++ 2020. 10. 26. 06:10
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바