求一个解决方法
--------------------Configuration: ss - Win32 Debug--------------------这是我编译c时出现的一个错误,谁能告诉我解决方案啊
以下是代码
#include "graphics.h"
main()
{
int gdriver =DETECT,gmode;
initgraph(&gdriver&gmode,"");
line(150,350,350,350);
line(370,100,370,350);
lineto(250,250);
getch();
closegraph();
}
-------------------------------------------------------------------------------------------------------
Compiling...
ss.c
e:\cm\graphics.h(241) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(243) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(244) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(246) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(247) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(248) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(249) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(250) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(250) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(250) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(251) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(251) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(252) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(254) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(255) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(255) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(256) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(257) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(257) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(258) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(258) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(258) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(259) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(260) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(261) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(262) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(263) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(263) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(264) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(264) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(265) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(266) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(267) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(268) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(268) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(269) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(270) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(271) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(272) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(273) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(274) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(274) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(275) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(276) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(277) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(277) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(278) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(279) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(279) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(280) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(280) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(281) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(282) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(283) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(284) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(285) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(285) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(286) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(286) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(287) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(288) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(289) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(289) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(290) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(291) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(292) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(292) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(292) : error C4226: nonstandard extension used : 'huge' is an obsolete keyword
e:\cm\graphics.h(293) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(293) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(294) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(295) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(296) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(297) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(298) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(299) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(299) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(300) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(300) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(301) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(303) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(303) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(304) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(305) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(306) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(307) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(309) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(310) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(310) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(311) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(312) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(313) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(314) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(314) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(315) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(316) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(317) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(318) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(320) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(321) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(323) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(324) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(325) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(327) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(329) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(330) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(331) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(331) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(332) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(332) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(337) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(337) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(349) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(349) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(350) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(350) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(351) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(351) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(352) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(352) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(353) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(353) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(354) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(354) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(360) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(360) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(370) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(370) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(371) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(371) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(372) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(372) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\graphics.h(373) : error C4226: nonstandard extension used : 'far' is an obsolete keyword
e:\cm\graphics.h(373) : warning C4229: anachronism used : modifiers on data are ignored
e:\cm\ss.c(5) : error C2296: '&' : illegal, left operand has type 'int *'
e:\cm\ss.c(5) : warning C4133: 'function' : incompatible types - from 'char [1]' to 'int *'
e:\cm\ss.c(5) : error C2198: 'initgraph' : too few actual parameters
e:\cm\ss.c(9) : warning C4013: 'getch' undefined; assuming extern returning int
执行 cl.exe 时出错.
ss.obj - 1 error(s), 0 warning(s)