2017-01-24 1 views
-2

Codelite에 graphics.h 라이브러리를 포함시키는 방법이 있습니까? CodeBlocks 또는 DevC++을 사용하고 싶지 않습니다. 내 대학 프로젝트에 필요합니다. CodeBlocks 및 DevC++에이 코드를 포함시키는 방법을 알고 있지만 Codelite에 쓴 필자의 이전 코드를 사용할 때 많은 오류가 있습니다. 재미있는 screenshot_screenshotCodelite에 graphics.h를 어떻게 포함합니까?

+0

을 ... 다운로드는 디스플레이 매개 변수와 함께 할 수있는 뭔가가 있지만 확실하지 않다 .co.kr/2013/08/how-to-include-graph icsh-in-codeblocks.html). 그런 다음 프로젝트와 연결되어 있는지 확인하십시오. – StoryTeller

+1

그 도서관은 고대이고 구식입니다. 왜 그것을 원하니? –

+0

@Someprogrammerdude - 일부 학교는 여전히 그것을 가르치고 있습니다. 슬프지만 사실이야. OP는 어리석은 요구에도 불구하고 현대 IDE를 원한다. – StoryTeller

답변

0

...이

내가 작은 프로그램

#include <graphics.h> 
#include <stdio.h> 
#include <conio.h> 


int main() 
{ 
    int x = 320, y = 240, radius; 

    initgraph(); 

    for (radius = 25; radius <= 125 ; radius = radius + 20) 
     circle(x, y, radius); 

    getch(); 
    return 0; 
} 

하고 컴파일을 쓴 날 위해 일했습니다. 'project'라는 Debug 폴더에 바이너리를 생성했습니다. 더블 클릭으로 실행하면 아무 것도 표시되지 않습니다. 그래서

1) I opened cmd 
2) dragged the binary into it.. It saved me the time to type the path myself 
3) Pressed enter 
4) Does not work the first time 
5) Pressed a key to come back to prompt 
6) Pressed up key to execute the binary again and pressed enter 
7) Did step 6 on the other display and it worked !!! 

내가 ....이 솔루션하지만 여전히 출발점없는

편집을 알고 : 나는 듀얼 디스플레이를 가지고 있고 하나 개의 디스플레이로 cmd를 프롬프트를 취할 때 작동 //geekhackers.blogspot : 다른이 나던 작업에 ... 아마 [여기] (HTTP와 같이

enter image description here

관련 문제