2017-01-24 6 views
-2

Codeliteにgraphics.hライブラリを含める方法はありますか? 私はCodeBlocksまたはDevC++を使いたくありません。 私の大学のプロジェクトにはそれが必要です。 私はCodeBlocksとDevC++にそれを含める方法を知っていますが、Codeliteで書いた私の古いコードを使用すると、多くのエラーが発生します。 screenshot_screenshotCodeliteにgraphics.hを含めるにはどうすればよいですか?

興味深い
+0

それをダウンロードしてください...それは表示パラメータとは何かを持っているが、私はわかりません.co.jp/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 !!! 

私は、これは解決策が、まだ出発点ではありません知っている....

編集:私は、デュアルディスプレイを持っていると私は1つのディスプレイにCMDプロンプトを取るときに動作し、 //geekhackers.blogspot:他のそれdoesntの仕事に...おそらく、[ここ](HTTP述べたよう

enter image description here

関連する問題