阿七秃了 2015-10-12 15:02 采纳率: 0%
浏览 3169

EGE新手,为什么那就Hello world 没有输出在控制台,我用的是codeblocks

EGE新手,为什么那就Hello world 没有输出在控制台,我用的是codeblocks
#include
#include
#include
using namespace std;
int main()
{
initgraph(640, 480);

cout<<"hello world "<<endl;
setfillcolor(EGERGB(0xFF, 0x0, 0x80));
line(100, 100, 500, 200);

line(500, 200, 200, 200);
line(200, 200, 100, 100);

getch();

closegraph();
return 0;

}

  • 写回答

3条回答 默认 最新

  • 大佬下手轻点 2020-03-31 10:57
    关注

    要是要在普通控制台(黑色的)显示,可以这样:

    #include 
    #define SHOW_CONSOLE
    
    int main(){......}
    
    评论

报告相同问题?