当前位置: 代码迷 >> C语言 >> [求助]这是我的程序,为什么后面老报错哦!
  详细解决方案

[求助]这是我的程序,为什么后面老报错哦!

热度:104   发布时间:2007-09-21 10:54:22.0
[求助]这是我的程序,为什么后面老报错哦!

/* file: draw a box */

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

/* constants */

#define h 0.5
#define w 1.0

/* function prototypes */

void drawcrossbox( double x,double y,double width, double height);

/* main program */

main()
{
initgraphics();
drawcrossbox( 0.5,0.5,w,h);
getch();
}


void drawcrossbox( double x,double y,double width,double height)
{
MovePen(x,y);
DrawLine(0,height);
DrawLine(width,0);
DrawLine(0,-height);
DrawLine(-width,0);
}

未定义的符号 '_DrawLine' 在模块 111.txt
未定义的符号 '_MovePen' 在模块 111.txt
未定义的符号 '_initgraphics' 在模块 111.txt

搜索更多相关的解决方案: double  drawcrossbox  include  void  

----------------解决方案--------------------------------------------------------
SF
----------------解决方案--------------------------------------------------------

----------------解决方案--------------------------------------------------------
  相关解决方案