모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    우와우와우왕님의
    개인페이지입니다
    가입 : 12-07-21
    방문 : 405회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_13241
    작성자 : 우와우와우왕
    추천 : 0
    조회수 : 435
    IP : 121.145.***.191
    댓글 : 2개
    등록시간 : 2015/09/12 16:51:47
    http://todayhumor.com/?programmer_13241 모바일
    (질문)콘솔 화면에서 실행하는 테트리스 만드는 중인데 질문점..
    옵션
    • 본인삭제금지
    <div style="border:1px solid rgb(0,0,128);color:rgb(0,0,0);font-family:Consolas, 'Courier New', Courier, Monospace;font-size:10pt;"> <div style="padding:2px 5px;color:rgb(220,220,220);overflow:auto;white-space:nowrap;max-height:300px;background-color:rgb(0,0,0);"><span style="color:rgb(155,155,155);">#include</span><span style="color:rgb(214,157,133);">"Turboc.h"</span><br><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">LEFT</span> <span style="color:rgb(181,206,168);">75</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">RIGHT</span> <span style="color:rgb(181,206,168);">77</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">UP</span> <span style="color:rgb(181,206,168);">72</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">DOWN</span> <span style="color:rgb(181,206,168);">80</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">ESC</span> <span style="color:rgb(181,206,168);">27</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">BX</span> <span style="color:rgb(181,206,168);">3</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">BY</span> <span style="color:rgb(181,206,168);">2</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">BW</span> <span style="color:rgb(181,206,168);">10</span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">BH</span> <span style="color:rgb(181,206,168);">30</span><br><br><br><br><span style="color:rgb(86,156,214);">struct</span> <span style="color:rgb(78,201,176);">Point</span><br>{<br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">;</span><br>}<span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(78,201,176);">Point</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[][</span><span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">=</span> {<br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">2</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">2</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">2</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">2</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>    { { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span> }<span style="color:rgb(180,180,180);">,</span> { <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(181,206,168);">1</span> } }<span style="color:rgb(180,180,180);">,</span><br>}<span style="color:rgb(180,180,180);">;</span><br><br><br><span style="color:rgb(86,156,214);">enum</span> {<span style="color:rgb(184,215,163);">EMPTY</span><span style="color:rgb(180,180,180);">,</span><span style="color:rgb(184,215,163);">BRICK</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(184,215,163);">WALL}</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(86,156,214);">char</span> <span style="color:rgb(180,180,180);">*</span><span style="color:rgb(200,200,200);">arTile</span><span style="color:rgb(180,180,180);">[]</span> <span style="color:rgb(180,180,180);">=</span> { <span style="color:rgb(214,157,133);">". "</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(214,157,133);">"??quot;</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(214,157,133);">"??quot;</span> }<span style="color:rgb(180,180,180);">;</span><br><br><br><br><span style="color:rgb(86,156,214);">char</span> <span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(189,99,197);">BW</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(189,99,197);">BH</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">=</span> { <span style="color:rgb(181,206,168);">0</span> }<span style="color:rgb(180,180,180);">;</span><br><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">ch</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">nframe</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">exist</span><span style="color:rgb(180,180,180);">;</span><br><br><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">int</span> nx<span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> ny<span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> nturn<span style="color:rgb(180,180,180);">);</span><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">CreateBlock</span><span style="color:rgb(180,180,180);">();</span><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(78,201,176);">BOOL</span> boolean<span style="color:rgb(180,180,180);">);</span><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">ProcessKey</span><span style="color:rgb(180,180,180);">();</span><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">StackBrick</span><span style="color:rgb(180,180,180);">();</span><br><br><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">main</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">void</span><span style="color:rgb(180,180,180);">)</span><br>{<br><br><br><br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">j</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">for</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);"><</span> <span style="color:rgb(189,99,197);">BH</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">++)</span><br>    {<br>        <span style="color:rgb(200,200,200);">gotoxy</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">BX</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(189,99,197);">BY</span><span style="color:rgb(180,180,180);">);</span><br><br>        <span style="color:rgb(200,200,200);">puts</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">arTile</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(184,215,163);">BRICK</span><span style="color:rgb(180,180,180);">]);</span><br><br>        <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(181,206,168);">0</span> <span style="color:rgb(180,180,180);">||</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(189,99,197);">BH</span> <span style="color:rgb(180,180,180);">-</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">)</span><br>            <span style="color:rgb(200,200,200);">puts</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">arTile</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(184,215,163);">EMPTY</span><span style="color:rgb(180,180,180);">]);</span><br><br>        <span style="color:rgb(200,200,200);">puts</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">arTile</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(184,215,163);">BRICK</span><span style="color:rgb(180,180,180);">]);</span><br><br>    }<br><br><br>    <span style="color:rgb(189,99,197);">randomize</span><span style="color:rgb(180,180,180);">();</span><br><br><br>    <span style="color:rgb(86,156,214);">while</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">)</span><br>    {<br><br>        <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">exist</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">)</span><br>            <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(!</span><span style="color:rgb(200,200,200);">CreateBlock</span><span style="color:rgb(180,180,180);">())</span><br>                <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(200,200,200);">ProcessKey</span><span style="color:rgb(180,180,180);">();</span><br><br>        <span style="color:rgb(200,200,200);">nframe</span><span style="color:rgb(180,180,180);">--;</span><br><br><br>        <span style="color:rgb(189,99,197);">delay</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(181,206,168);">20</span><span style="color:rgb(180,180,180);">);</span><br><br>        <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">((</span><span style="color:rgb(200,200,200);">nframe</span> <span style="color:rgb(180,180,180);"><=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">&&</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">)))</span><br>        {<br>            <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br>            <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">++;</span><br>            <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>        }<br>        <span style="color:rgb(86,156,214);">else</span><br>            <span style="color:rgb(200,200,200);">StackBrick</span><span style="color:rgb(180,180,180);">();</span><br><br><br>    }<br><br><br><br><br><br>}<br><br><br><br><br><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">nx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">ny</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">)</span><br>{<br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">for</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);"><</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">++)</span><br>        <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(127,127,127);">nx</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">ny</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">!=</span> <span style="color:rgb(184,215,163);">EMPTY</span><span style="color:rgb(180,180,180);">)</span><br>        {<br>            <span style="color:rgb(200,200,200);">putch</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(214,157,133);">'\a'</span><span style="color:rgb(180,180,180);">);</span><br>            <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">;</span><br>        }<br>    <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">;</span><br>}<br><br><br><br><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">CreateBlock</span><span style="color:rgb(180,180,180);">()</span><br>{<br>    <span style="color:rgb(200,200,200);">block</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">random</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">%</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span><br>    <span style="color:rgb(200,200,200);">turn</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">random</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(181,206,168);">7</span><span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">%</span> <span style="color:rgb(181,206,168);">7</span><span style="color:rgb(180,180,180);">;</span><br>    <br>    <span style="color:rgb(200,200,200);">dx</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">BX</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">5</span><span style="color:rgb(180,180,180);">;</span><br>    <span style="color:rgb(200,200,200);">dy</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">BY</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(200,200,200);">nframe</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">50</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(!</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">))</span><br>        <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">;</span><br><br><br>    <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">;</span><br>}<br><br><br><br><br><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">nx</span><span style="color:rgb(180,180,180);">,</span><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">ny</span><span style="color:rgb(180,180,180);">,</span><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">)</span><br>{<br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">;</span><br>    <br>    <span style="color:rgb(86,156,214);">for</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);"><</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">++)</span><br>        <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(127,127,127);">nx</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">ny</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(127,127,127);">nturn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">!=</span> <span style="color:rgb(184,215,163);">EMPTY</span><span style="color:rgb(180,180,180);">)</span><br>        {<br>            <span style="color:rgb(200,200,200);">putch</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(214,157,133);">'\a'</span><span style="color:rgb(180,180,180);">);</span><br>            <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">;</span><br>        }<br>    <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">;</span><br>}<br><br><br><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(78,201,176);">BOOL</span> <span style="color:rgb(127,127,127);">boolean</span><span style="color:rgb(180,180,180);">)</span><br>{<br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">for</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);"><</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">++)</span><br>    {<br>        <span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(127,127,127);">boolean</span> <span style="color:rgb(180,180,180);">?</span> <span style="color:rgb(184,215,163);">BRICK</span> <span style="color:rgb(180,180,180);">:</span> <span style="color:rgb(184,215,163);">EMPTY</span><span style="color:rgb(180,180,180);">;</span><br>        <span style="color:rgb(200,200,200);">gotoxy</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">);</span><br>        <span style="color:rgb(200,200,200);">puts</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">arTile</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">]]);</span><br>    }<br>}<br><br><br><br><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">ProcessKey</span><span style="color:rgb(180,180,180);">()</span><br>{<br>    <span style="color:rgb(200,200,200);">ch</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(200,200,200);">getch</span><span style="color:rgb(180,180,180);">();</span><br><br>    <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">ch</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(181,206,168);">0xE0</span> <span style="color:rgb(180,180,180);">||</span> <span style="color:rgb(200,200,200);">ch</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">)</span><br>    {<br>        <span style="color:rgb(200,200,200);">ch</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(200,200,200);">getch</span><span style="color:rgb(180,180,180);">();</span><br><br>        <span style="color:rgb(86,156,214);">switch</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">ch</span><span style="color:rgb(180,180,180);">)</span><br>        {<br>        <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(189,99,197);">UP</span><span style="color:rgb(180,180,180);">:</span><br>            <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">turn</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">%</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">))</span><br>            {<br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br>                <span style="color:rgb(200,200,200);">turn</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">turn</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">%</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span><br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>            }<br>            <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(189,99,197);">DOWN</span><span style="color:rgb(180,180,180);">:</span><br>            <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">+</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">))</span><br>            {<br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br>                <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">++;</span><br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>            }<br>            <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br><br>        <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(189,99,197);">LEFT</span><span style="color:rgb(180,180,180);">:</span><br>            <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">-</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">))</span><br>            {<br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br>                <span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">--;</span><br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>            }<br>            <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(189,99,197);">RIGHT</span><span style="color:rgb(180,180,180);">:</span><br>            <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">+</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">))</span><br>            {<br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br>                <span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">++;</span><br>                <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>            }<br>            <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br>        }<br>    }<br><br>    <span style="color:rgb(86,156,214);">if</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">ch</span> <span style="color:rgb(180,180,180);">==</span> <span style="color:rgb(214,157,133);">' '</span><span style="color:rgb(180,180,180);">)</span><br>    {<br>        <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">);</span><br><br>        <span style="color:rgb(86,156,214);">while</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetAround</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">dx</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">+</span><span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">))</span><br>        {<br>            <span style="color:rgb(200,200,200);">dy</span><span style="color:rgb(180,180,180);">++;</span><br>        }<br><br>        <span style="color:rgb(200,200,200);">MoveBlock</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">);</span><br>        <span style="color:rgb(200,200,200);">StackBrick</span><span style="color:rgb(180,180,180);">();</span><br>    }<br><br><br>}<br><br><br><br><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">StackBrick</span><span style="color:rgb(180,180,180);">()</span><br>{<br>    <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">for</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">0</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span> <span style="color:rgb(180,180,180);"><</span> <span style="color:rgb(181,206,168);">4</span><span style="color:rgb(180,180,180);">;</span> <span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">++)</span><br>    {<br>        <span style="color:rgb(200,200,200);">board</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">dx</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">x</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">dy</span> <span style="color:rgb(180,180,180);">+</span> <span style="color:rgb(200,200,200);">Shape</span><span style="color:rgb(180,180,180);">[</span><span style="color:rgb(200,200,200);">block</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">turn</span><span style="color:rgb(180,180,180);">][</span><span style="color:rgb(200,200,200);">i</span><span style="color:rgb(180,180,180);">].</span><span style="color:rgb(218,218,218);">y</span><span style="color:rgb(180,180,180);">]</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(184,215,163);">BRICK</span><span style="color:rgb(180,180,180);">;</span><br>    }<br><br>    <span style="color:rgb(200,200,200);">exist</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">;</span><br>}</div></div> <div> </div> <div> </div> <div style="border:1px solid rgb(0,0,128);color:rgb(0,0,0);font-family:Consolas, 'Courier New', Courier, Monospace;font-size:10pt;"> <div style="padding:2px 5px;color:rgb(220,220,220);overflow:auto;white-space:nowrap;max-height:300px;background-color:rgb(0,0,0);"><span style="color:rgb(155,155,155);">#ifndef</span> TURBOC_HEADER<br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">TURBOC_HEADER</span><br><br><br><br><span style="color:rgb(155,155,155);">#include</span> <span style="color:rgb(214,157,133);"><stdio.h></span><br><br><span style="color:rgb(155,155,155);">#include</span> <span style="color:rgb(214,157,133);"><stdlib.h></span><br><br><span style="color:rgb(155,155,155);">#include</span> <span style="color:rgb(214,157,133);"><conio.h></span><br><br><span style="color:rgb(155,155,155);">#include</span> <span style="color:rgb(214,157,133);"><time.h></span><br><br><span style="color:rgb(155,155,155);">#include</span> <span style="color:rgb(214,157,133);"><windows.h></span><br><br><br><br><span style="color:rgb(86,156,214);">typedef</span> <span style="color:rgb(86,156,214);">enum</span> { <span style="color:rgb(184,215,163);">NOCURSOR</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(184,215,163);">SOLIDCURSOR</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(184,215,163);">NORMALCURSOR</span> } <span style="color:rgb(78,201,176);">CURSOR_TYPE</span><span style="color:rgb(180,180,180);">;</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">clrscr</span><span style="color:rgb(180,180,180);">();</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">gotoxy</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">int</span> x<span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> y<span style="color:rgb(180,180,180);">);</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">wherex</span><span style="color:rgb(180,180,180);">();</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">wherey</span><span style="color:rgb(180,180,180);">();</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">setcursortype</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(78,201,176);">CURSOR_TYPE</span> c<span style="color:rgb(180,180,180);">);</span><br><br><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">delay</span><span style="color:rgb(180,180,180);">(</span>n<span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(200,200,200);">Sleep</span><span style="color:rgb(180,180,180);">(</span>n<span style="color:rgb(180,180,180);">)</span>                              <span style="color:rgb(87,166,74);">// n/1000珥덈쭔???쒓컙 ??/span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">randomize</span><span style="color:rgb(180,180,180);">()</span> <span style="color:rgb(200,200,200);">srand</span><span style="color:rgb(180,180,180);">((</span><span style="color:rgb(86,156,214);">unsigned</span><span style="color:rgb(180,180,180);">)</span><span style="color:rgb(200,200,200);">time</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">NULL</span><span style="color:rgb(180,180,180);">))</span>         <span style="color:rgb(87,166,74);">// ?쒖닔 諛쒖깮湲?珥덇린??/span><br><br><span style="color:rgb(155,155,155);">#define</span> <span style="color:rgb(189,99,197);">random</span><span style="color:rgb(180,180,180);">(</span>n<span style="color:rgb(180,180,180);">)</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">rand</span><span style="color:rgb(180,180,180);">()</span> <span style="color:rgb(180,180,180);">%</span> <span style="color:rgb(180,180,180);">(</span>n<span style="color:rgb(180,180,180);">))</span>                        <span style="color:rgb(87,166,74);">//0~n源뚯????쒖닔 諛쒖깮</span><br><br><br><br><span style="color:rgb(87,166,74);">// ??ㅽ겕濡쒓? ?뺤쓽?섏뼱 ?덉쑝??⑥닔???먰삎??좎뼵?섍퀬 ?뺤쓽???섏? ?딅뒗??</span><br><br><span style="color:rgb(155,155,155);">#ifndef</span> TURBOC_PROTOTYPE_ONLY<br><br><br><br><span style="color:rgb(87,166,74);">// ?붾㈃??⑤몢 ?대떎.</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">clrscr</span><span style="color:rgb(180,180,180);">()</span><br><br>{<br><br>    <span style="color:rgb(200,200,200);">system</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(214,157,133);">"cls"</span><span style="color:rgb(180,180,180);">);</span><br><br>}<br><br><br><br><span style="color:rgb(87,166,74);">// 而ㅼ꽌瑜?x,y醫뚰몴濡??대룞?쒗궓??</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">gotoxy</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">x</span><span style="color:rgb(180,180,180);">,</span> <span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(127,127,127);">y</span><span style="color:rgb(180,180,180);">)</span><br><br>{<br><br>    <span style="color:rgb(78,201,176);">COORD</span> <span style="color:rgb(200,200,200);">Cur</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(200,200,200);">Cur</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">X</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(127,127,127);">x</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(200,200,200);">Cur</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">Y</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(127,127,127);">y</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(200,200,200);">SetConsoleCursorPosition</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetStdHandle</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">STD_OUTPUT_HANDLE</span><span style="color:rgb(180,180,180);">),</span> <span style="color:rgb(200,200,200);">Cur</span><span style="color:rgb(180,180,180);">);</span><br><br>}<br><br><br><br><span style="color:rgb(87,166,74);">// 而ㅼ꽌??x 醫뚰몴瑜?議곗궗?쒕떎.</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">wherex</span><span style="color:rgb(180,180,180);">()</span><br><br>{<br><br>    <span style="color:rgb(78,201,176);">CONSOLE_SCREEN_BUFFER_INFO</span> <span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">;</span><br><br><br><br>    <span style="color:rgb(200,200,200);">GetConsoleScreenBufferInfo</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetStdHandle</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">STD_OUTPUT_HANDLE</span><span style="color:rgb(180,180,180);">),</span> <span style="color:rgb(180,180,180);">&</span><span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">);</span><br><br>    <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">dwCursorPosition</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">X</span><span style="color:rgb(180,180,180);">;</span><br><br>}<br><br><br><br><span style="color:rgb(87,166,74);">// 而ㅼ꽌??y醫뚰몴瑜?議곗궗?쒕떎.</span><br><br><span style="color:rgb(86,156,214);">int</span> <span style="color:rgb(200,200,200);">wherey</span><span style="color:rgb(180,180,180);">()</span><br><br>{<br><br>    <span style="color:rgb(78,201,176);">CONSOLE_SCREEN_BUFFER_INFO</span> <span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">;</span><br><br><br><br>    <span style="color:rgb(200,200,200);">GetConsoleScreenBufferInfo</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetStdHandle</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">STD_OUTPUT_HANDLE</span><span style="color:rgb(180,180,180);">),</span> <span style="color:rgb(180,180,180);">&</span><span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">);</span><br><br>    <span style="color:rgb(86,156,214);">return</span> <span style="color:rgb(200,200,200);">BufInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">dwCursorPosition</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">Y</span><span style="color:rgb(180,180,180);">;</span><br><br>}<br><br><br><br><span style="color:rgb(87,166,74);">// 而ㅼ꽌瑜??④린嫄곕굹 ?ㅼ떆 ?쒖떆?쒕떎.</span><br><br><span style="color:rgb(86,156,214);">void</span> <span style="color:rgb(200,200,200);">setcursortype</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(78,201,176);">CURSOR_TYPE</span> <span style="color:rgb(127,127,127);">c</span><span style="color:rgb(180,180,180);">)</span><br><br>{<br><br>    <span style="color:rgb(78,201,176);">CONSOLE_CURSOR_INFO</span> <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">;</span><br><br><br><br>    <span style="color:rgb(86,156,214);">switch</span> <span style="color:rgb(180,180,180);">(</span><span style="color:rgb(127,127,127);">c</span><span style="color:rgb(180,180,180);">)</span> {<br><br>    <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(184,215,163);">NOCURSOR</span><span style="color:rgb(180,180,180);">:</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">dwSize</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">1</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">bVisible</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">FALSE</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(184,215,163);">SOLIDCURSOR</span><span style="color:rgb(180,180,180);">:</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">dwSize</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">100</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">bVisible</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>    <span style="color:rgb(86,156,214);">case</span> <span style="color:rgb(184,215,163);">NORMALCURSOR</span><span style="color:rgb(180,180,180);">:</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">dwSize</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(181,206,168);">20</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">.</span><span style="color:rgb(218,218,218);">bVisible</span> <span style="color:rgb(180,180,180);">=</span> <span style="color:rgb(189,99,197);">TRUE</span><span style="color:rgb(180,180,180);">;</span><br><br>        <span style="color:rgb(86,156,214);">break</span><span style="color:rgb(180,180,180);">;</span><br><br>    }<br><br>    <span style="color:rgb(200,200,200);">SetConsoleCursorInfo</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(200,200,200);">GetStdHandle</span><span style="color:rgb(180,180,180);">(</span><span style="color:rgb(189,99,197);">STD_OUTPUT_HANDLE</span><span style="color:rgb(180,180,180);">),</span> <span style="color:rgb(180,180,180);">&</span><span style="color:rgb(200,200,200);">CurInfo</span><span style="color:rgb(180,180,180);">);</span><br><br>}<br><br><br><br></span></span></div></div> <div> </div> <div> </div> <div>위의 코드는 테트리스 코드이고</div> <div> </div> <div>아래의 코드는 헤더파일 코드입니다.</div> <div> </div> <div> </div> <div> </div> <div>현재 콘솔화면에서 플레이하는 테트리스를 만드는 중입니다.</div> <div> </div> <div>일단 지금 만들고 있는 중이라 이대로 실행해도 제대로 작동 안될껀 뻔하지만</div> <div> </div> <div>그래도 어케되는지 궁금해서 컴파일을 시켜봤더니 전혀 예상치 못한곳에서 에러가 발생....</div> <div> </div> <div>1>d:\하정해\해킹\c++공부\tetrisgame.c\tetrisgame.c\tetrisgame.cpp(199): error C3861: 'GetAround': identifier not found<br>1>d:\하정해\해킹\c++공부\tetrisgame.c\tetrisgame.c\tetrisgame.cpp(208): error C3861: 'GetAround': identifier not found<br>1>d:\하정해\해킹\c++공부\tetrisgame.c\tetrisgame.c\tetrisgame.cpp(218): error C3861: 'GetAround': identifier not found<br>1>d:\하정해\해킹\c++공부\tetrisgame.c\tetrisgame.c\tetrisgame.cpp(227): error C3861: 'GetAround': identifier not found<br>1>d:\하정해\해킹\c++공부\tetrisgame.c\tetrisgame.c\tetrisgame.cpp(241): error C3861: 'GetAround': identifier not found</div> <div> </div> <div> </div> <div>전부다 ProcessKey함수안에 있는 GetAround함수에서 나온 에러구요 식별자를 찾을수가 없다고 나오네요...</div> <div> </div> <div>msdn에서 찾아봐도 c3861은 함수를 선언하지 않고 사용할 경우에 뜨는 에러라고 하는데</div> <div> </div> <div>위에서 보시다시피 함수의 선언과 정의 둘다 해놓았고</div> <div> </div> <div>main 함수 안에있는 GetAround 에서는 아무런 에러도 발생하지 않는데 대체 뭐가 문제인건지....</div>

    이 게시물을 추천한 분들의 목록입니다.
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    101
    국가장학금 서류제출 용량문제 해결좀;; [1] 본인삭제금지 우와우와우왕 16/03/09 22:05 18 0
    100
    아이패드 에어 키보드 케이스좀 추천 해주세여 본인삭제금지 우와우와우왕 16/02/28 20:27 10 0
    99
    대학물리학 강체의 굴림 문제에 대해 질문점... [13] 본인삭제금지 우와우와우왕 16/02/25 19:45 32 0
    98
    포토샵 기능에 대해서 질문점.... [2] 우와우와우왕 16/02/19 23:54 23 0
    97
    수학문제 질문점... [7] 본인삭제금지 우와우와우왕 16/02/09 20:12 53 1
    96
    어제사고 1/3정도 먹은 식재료 반품 가능할까요?? [4] 우와우와우왕 16/02/06 14:28 67 0
    95
    감정 50제 [3] 우와우와우왕 16/02/05 02:07 11 10
    94
    와콤 인튜어스 프로 보호필름 없이 쓰는 중인데 좀 후회되네여 ㅠㅠ [3] 우와우와우왕 16/01/20 01:39 17 1
    93
    정보 보안쪽은 독학으로는 공부하기 힘들까요..?? [5] 본인삭제금지 우와우와우왕 16/01/17 00:10 28 0
    92
    어제 랜섬웨어에 감염되고 간신히 치료했네요 ㄷㄷㄷ;; [5] 우와우와우왕 16/01/16 23:50 70 1
    91
    그림 잘 그리는법 [4] 우와우와우왕 16/01/09 21:46 18 2
    90
    [질문글]대학물리학 문제 질문점;; [3] 본인삭제금지 우와우와우왕 16/01/07 20:24 39 0
    89
    와콤 신티크 대신에 아이패드로 쓸만 할까요?? [5] 우와우와우왕 15/12/31 21:59 12 0
    88
    인터스텔라의 인공중력에 대해서 질문점... [12] 본인삭제금지 우와우와우왕 15/12/16 11:32 80 0
    87
    대학물리학에서 마찰에 대해 질문점... [6] 본인삭제금지 우와우와우왕 15/12/15 20:37 56 0
    86
    포토샵 강좌 배울만한곳 있을까요?? [2] 우와우와우왕 15/12/10 23:20 10 0
    85
    과고생들이 배운다는 "고급수학"(일명 수학3)교재 구할방법 없을까요?? [16] 우와우와우왕 15/11/28 21:52 70 0
    84
    수학문제 질문점 ㅠㅠ... [9] 본인삭제금지 우와우와우왕 15/11/26 00:10 42 0
    83
    [질문]연산자 오버로딩과 연산자 연계 호출에 대해서 질문점.... [7] 본인삭제금지 우와우와우왕 15/11/19 14:56 31 0
    82
    [질문글] 뮤텍스와 이벤트 오브젝트의 실질적인 차이점에 대해서좀 ㅠㅠ [3] 본인삭제금지 우와우와우왕 15/11/06 12:08 33 0
    81
    리눅스 공부 땜에 멘붕.... [3] 우와우와우왕 15/10/30 22:19 39 0
    80
    3분할에서 4분할로 바꿔도 될까요?? [4] 우와우와우왕 15/10/23 21:35 30 1
    79
    [질문글]sizeof에 대해서 질문점... [4] 본인삭제금지 우와우와우왕 15/10/17 18:48 23 0
    78
    [질문글] 1인 제작 게임에서 사운드는 어떻게 구해야 할까요...?? [5] 본인삭제금지 우와우와우왕 15/10/12 22:57 33 0
    77
    삼각근 운동땜에 미치겄네여... 아무리 해도 자극이 안갑니다...;; [1] 우와우와우왕 15/10/03 23:30 38 0
    76
    c,c++ 문법서를 한권씩 배운 상태 입니다. 이제 뭘해야할지...?? [4] 본인삭제금지 우와우와우왕 15/09/28 17:31 51 0
    (질문)콘솔 화면에서 실행하는 테트리스 만드는 중인데 질문점.. [2] 본인삭제금지 우와우와우왕 15/09/12 16:51 45 0
    74
    타블렛 드라이버 문제랑 포토샵 때문에 머리아파죽겟음... [2] 우와우와우왕 15/09/01 23:02 14 0
    73
    3d 그래픽 작업용 컴사양은 어느정도 되야할가요?? [3] 우와우와우왕 15/07/14 23:37 37 0
    72
    void 포인터에 대해서 질문좀... [27] 본인삭제금지 우와우와우왕 15/07/14 13:44 58 0
    [1] [2] [3] [4] [5] [6]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈