C语言中的作图问题

C\u8bed\u8a00\u4f5c\u56fe\u95ee\u9898

\u5148\u8fdb\u5165\u56fe\u5f62\u663e\u793a\u6a21\u5f0f\u624d\u80fd\u4f5c\u56fe\uff01~

Turbo C\u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684\u56fe\u5f62\u51fd\u6570, \u6240\u6709\u56fe\u5f62\u51fd\u6570\u7684\u539f\u578b\u5747\u5728graphics. h\u4e2d, \u672c\u8282\u4e3b\u8981\u4ecb\u7ecd\u56fe\u5f62\u6a21\u5f0f\u7684\u521d\u59cb\u5316\u3001\u72ec\u7acb\u56fe\u5f62\u7a0b\u5e8f\u7684\u5efa\u7acb\u3001\u57fa\u672c\u56fe\u5f62\u529f\u80fd\u3001\u56fe\u5f62\u7a97\u53e3\u4ee5\u53ca\u56fe\u5f62\u6a21\u5f0f\u4e0b\u7684\u6587\u672c\u8f93\u51fa\u7b49\u51fd\u6570\u3002\u53e6\u5916, \u4f7f\u7528\u56fe\u5f62\u51fd\u6570\u65f6\u8981\u786e\u4fdd\u6709\u663e\u793a\u5668\u56fe\u5f62\u9a71\u52a8\u7a0b\u5e8f*BGI, \u540c\u65f6\u5c06\u96c6\u6210\u5f00\u53d1\u73af\u5883Options/Linker\u4e2d\u7684Graphics lib\u9009\u4e3aon, \u53ea\u6709\u8fd9\u6837\u624d\u80fd\u4fdd\u8bc1\u6b63\u786e\u4f7f\u7528\u56fe\u5f62\u51fd\u6570\u3002\u7531\u4e8e\u79cd\u7c7b\u6bd4\u8f83\u591a\uff0c\u6240\u4ee5\u4e0b\u9762\u4ec5\u5217\u4e3e2\u4e2a\u4f8b\u5b50\uff0c\u629b\u7816\u5f15\u7389\u2192
1.\u70b9
void far putpixel(int x, int y, int color);
2.\u7ebf
void far line(int x0, int y0, int x1, int y1); \u753b\u4e00\u6761\u4ece\u70b9(x0, y0)\u5230(x1, y1)\u7684\u76f4\u7ebf\u3002

void far lineto(int x, int y); \u753b\u4e00\u4f5c\u4ece\u73b0\u884c\u6e38\u6807\u5230\u70b9(x, y)\u7684\u76f4\u7ebf\u3002

void far linerel(int dx, int dy); \u753b\u4e00\u6761\u4ece\u73b0\u884c\u6e38\u6807(x, y)\u5230\u6309\u76f8\u5bf9\u589e\u91cf\u786e\u5b9a\u7684\u70b9(x+dx, y+dy)\u7684\u76f4\u7ebf\u3002

void far circle(int x, int y, int radius); \u4ee5(x, y)\u4e3a\u5706\u5fc3, radius\u4e3a\u534a\u5f84, \u753b\u4e00\u4e2a\u5706\u3002

c\u8bed\u8a00\u7684\u56fe\u5f62\u90e8\u5206\u662f\u5f88\u6709\u610f\u601d\u7684\uff01\u4e5f\u662fc\u4e2d\u6700\u7cbe\u5f69\u7684\u5185\u5bb9\u4e4b\u4e00\uff0c\u5e0c\u671b\u4f60\u80fd\u5f88\u5feb\u4eab\u53d7\u5b83\u7684\u4e50\u8da3\uff01

你没有把graphics.h放在头文件夹下吧,还是没有这个头文件?
这是 graphics.h的代码,自己再TC或VC安装目录下的include文件夹下建个graphics.h文件(用记事本就行)

/* graphics.h

Definitions for Graphics Package.

Copyright (c) Borland International 1987,1988
All Rights Reserved.
*/

#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif

#if !defined(__GRAPHX_DEF_)
#define __GRAPHX_DEF_

enum graphics_errors { /* graphresult error return codes */
grOk = 0,
grNoInitGraph = -1,
grNotDetected = -2,
grFileNotFound = -3,
grInvalidDriver = -4,
grNoLoadMem = -5,
grNoScanMem = -6,
grNoFloodMem = -7,
grFontNotFound = -8,
grNoFontMem = -9,
grInvalidMode = -10,
grError = -11, /* generic error */
grIOerror = -12,
grInvalidFont = -13,
grInvalidFontNum = -14,
grInvalidVersion = -18
};

enum graphics_drivers { /* define graphics drivers */
DETECT, /* requests autodetection */
CGA, MCGA, EGA, EGA64, EGAMONO, IBM8514, /* 1 - 6 */
HERCMONO, ATT400, VGA, PC3270, /* 7 - 10 */
CURRENT_DRIVER = -1
};

enum graphics_modes { /* graphics modes for each driver */
CGAC0 = 0, /* 320x200 palette 0; 1 page */
CGAC1 = 1, /* 320x200 palette 1; 1 page */
CGAC2 = 2, /* 320x200 palette 2: 1 page */
CGAC3 = 3, /* 320x200 palette 3; 1 page */
CGAHI = 4, /* 640x200 1 page */
MCGAC0 = 0, /* 320x200 palette 0; 1 page */
MCGAC1 = 1, /* 320x200 palette 1; 1 page */
MCGAC2 = 2, /* 320x200 palette 2; 1 page */
MCGAC3 = 3, /* 320x200 palette 3; 1 page */
MCGAMED = 4, /* 640x200 1 page */
MCGAHI = 5, /* 640x480 1 page */
EGALO = 0, /* 640x200 16 color 4 pages */
EGAHI = 1, /* 640x350 16 color 2 pages */
EGA64LO = 0, /* 640x200 16 color 1 page */
EGA64HI = 1, /* 640x350 4 color 1 page */
EGAMONOHI = 0, /* 640x350 64K on card, 1 page - 256K on card, 4 pages */
HERCMONOHI = 0, /* 720x348 2 pages */
ATT400C0 = 0, /* 320x200 palette 0; 1 page */
ATT400C1 = 1, /* 320x200 palette 1; 1 page */
ATT400C2 = 2, /* 320x200 palette 2; 1 page */
ATT400C3 = 3, /* 320x200 palette 3; 1 page */
ATT400MED = 4, /* 640x200 1 page */
ATT400HI = 5, /* 640x400 1 page */
VGALO = 0, /* 640x200 16 color 4 pages */
VGAMED = 1, /* 640x350 16 color 2 pages */
VGAHI = 2, /* 640x480 16 color 1 page */
PC3270HI = 0, /* 720x350 1 page */
IBM8514LO = 0, /* 640x480 256 colors */
IBM8514HI = 1 /*1024x768 256 colors */
};

/* Colors for setpalette and setallpalette */

#if !defined(__COLORS)
#define __COLORS

enum COLORS {
BLACK, /* dark colors */
BLUE,
GREEN,
CYAN,
RED,
MAGENTA,
BROWN,
LIGHTGRAY,
DARKGRAY, /* light colors */
LIGHTBLUE,
LIGHTGREEN,
LIGHTCYAN,
LIGHTRED,
LIGHTMAGENTA,
YELLOW,
WHITE
};
#endif

enum CGA_COLORS {
CGA_LIGHTGREEN = 1, /* Palette C0 Color Names */
CGA_LIGHTRED = 2,
CGA_YELLOW = 3,

CGA_LIGHTCYAN = 1, /* Palette C1 Color Names */
CGA_LIGHTMAGENTA = 2,
CGA_WHITE = 3,

CGA_GREEN = 1, /* Palette C2 Color Names */
CGA_RED = 2,
CGA_BROWN = 3,

CGA_CYAN = 1, /* Palette C3 Color Names */
CGA_MAGENTA = 2,
CGA_LIGHTGRAY = 3
};

enum EGA_COLORS {
EGA_BLACK = 0, /* dark colors */
EGA_BLUE = 1,
EGA_GREEN = 2,
EGA_CYAN = 3,
EGA_RED = 4,
EGA_MAGENTA = 5,
EGA_BROWN = 20,
EGA_LIGHTGRAY = 7,
EGA_DARKGRAY = 56, /* light colors */
EGA_LIGHTBLUE = 57,
EGA_LIGHTGREEN = 58,
EGA_LIGHTCYAN = 59,
EGA_LIGHTRED = 60,
EGA_LIGHTMAGENTA = 61,
EGA_YELLOW = 62,
EGA_WHITE = 63
};

enum line_styles { /* Line styles for get/setlinestyle */
SOLID_LINE = 0,
DOTTED_LINE = 1,
CENTER_LINE = 2,
DASHED_LINE = 3,
USERBIT_LINE = 4, /* User defined line style */
};

enum line_widths { /* Line widths for get/setlinestyle */
NORM_WIDTH = 1,
THICK_WIDTH = 3,
};

enum font_names {
DEFAULT_FONT = 0, /* 8x8 bit mapped font */
TRIPLEX_FONT = 1, /* "Stroked" fonts */
SMALL_FONT = 2,
SANS_SERIF_FONT = 3,
GOTHIC_FONT = 4
};

#define HORIZ_DIR 0 /* left to right */
#define VERT_DIR 1 /* bottom to top */

#define USER_CHAR_SIZE 0 /* user-defined char size */

enum fill_patterns { /* Fill patterns for get/setfillstyle */
EMPTY_FILL, /* fills area in background color */
SOLID_FILL, /* fills area in solid fill color */
LINE_FILL, /* --- fill */
LTSLASH_FILL, /* /// fill */
SLASH_FILL, /* /// fill with thick lines */
BKSLASH_FILL, /* \\\ fill with thick lines */
LTBKSLASH_FILL, /* \\\ fill */
HATCH_FILL, /* light hatch fill */
XHATCH_FILL, /* heavy cross hatch fill */
INTERLEAVE_FILL, /* interleaving line fill */
WIDE_DOT_FILL, /* Widely spaced dot fill */
CLOSE_DOT_FILL, /* Closely spaced dot fill */
USER_FILL /* user defined fill */
};

enum putimage_ops { /* BitBlt operators for putimage */
COPY_PUT, /* MOV */
XOR_PUT, /* XOR */
OR_PUT, /* OR */
AND_PUT, /* AND */
NOT_PUT /* NOT */
};

enum text_just { /* Horizontal and vertical justification
for settextjustify */
LEFT_TEXT = 0,
CENTER_TEXT = 1,
RIGHT_TEXT = 2,

BOTTOM_TEXT = 0,
/* CENTER_TEXT = 1, already defined above */
TOP_TEXT = 2
};

#define MAXCOLORS 15

struct palettetype {
unsigned char size;
signed char colors[MAXCOLORS+1];
};

struct linesettingstype {
int linestyle;
unsigned upattern;
int thickness;
};

struct textsettingstype {
int font;
int direction;
int charsize;
int horiz;
int vert;
};

struct fillsettingstype {
int pattern;
int color;
};

struct pointtype {
int x, y;
};

struct viewporttype {
int left, top, right, bottom;
int clip;
};

struct arccoordstype {
int x, y;
int xstart, ystart, xend, yend;
};

void far _Cdecl arc(int x, int y, int stangle, int endangle,
int radius);
void far _Cdecl bar(int left, int top, int right, int bottom);
void far _Cdecl bar3d(int left, int top, int right, int bottom,
int depth, int topflag);
void far _Cdecl circle(int x, int y, int radius);
void far _Cdecl cleardevice(void);
void far _Cdecl clearviewport(void);
void far _Cdecl closegraph(void);
void far _Cdecl detectgraph(int far *graphdriver,int far *graphmode);
void far _Cdecl drawpoly(int numpoints, int far *polypoints);
void far _Cdecl ellipse(int x, int y, int stangle, int endangle,
int xradius, int yradius);
void far _Cdecl fillellipse( int x, int y, int xradius, int yradius );
void far _Cdecl fillpoly(int numpoints, int far *polypoints);
void far _Cdecl floodfill(int x, int y, int border);
void far _Cdecl getarccoords(struct arccoordstype far *arccoords);
void far _Cdecl getaspectratio(int far *xasp, int far *yasp);
int far _Cdecl getbkcolor(void);
int far _Cdecl getcolor(void);
struct palettetype * far _Cdecl getdefaultpalette( void );
char * far _Cdecl getdrivername( void );
void far _Cdecl getfillpattern(char far *pattern);
void far _Cdecl getfillsettings(struct fillsettingstype far *fillinfo);
int far _Cdecl getgraphmode(void);
void far _Cdecl getimage(int left, int top, int right, int bottom,
void far *bitmap);
void far _Cdecl getlinesettings(struct linesettingstype far *lineinfo);
int far _Cdecl getmaxcolor(void);
int far _Cdecl getmaxmode(void);
int far _Cdecl getmaxx(void);
int far _Cdecl getmaxy(void);
char * far _Cdecl getmodename( int mode_number );
void far _Cdecl getmoderange(int graphdriver, int far *lomode,
int far *himode);
unsigned far _Cdecl getpixel(int x, int y);
void far _Cdecl getpalette(struct palettetype far *palette);
int far _Cdecl getpalettesize( void );
void far _Cdecl gettextsettings(struct textsettingstype far *texttypeinfo);
void far _Cdecl getviewsettings(struct viewporttype far *viewport);
int far _Cdecl getx(void);
int far _Cdecl gety(void);
void far _Cdecl graphdefaults(void);
char * far _Cdecl grapherrormsg(int errorcode);
void far _Cdecl _graphfreemem(void far *ptr, unsigned size);
void far * far _Cdecl _graphgetmem(unsigned size);
int far _Cdecl graphresult(void);
unsigned far _Cdecl imagesize(int left, int top, int right, int bottom);
void far _Cdecl initgraph(int far *graphdriver,
int far *graphmode,
char far *pathtodriver);
int far _Cdecl installuserdriver( char far *name, int huge (*detect)(void) );
int far _Cdecl installuserfont( char far *name );
void far _Cdecl line(int x1, int y1, int x2, int y2);
void far _Cdecl linerel(int dx, int dy);
void far _Cdecl lineto(int x, int y);
void far _Cdecl moverel(int dx, int dy);
void far _Cdecl moveto(int x, int y);
void far _Cdecl outtext(char far *textstring);
void far _Cdecl outtextxy(int x, int y, char far *textstring);
void far _Cdecl pieslice(int x, int y, int stangle, int endangle,
int radius);
void far _Cdecl putimage(int left, int top, void far *bitmap, int op);
void far _Cdecl putpixel(int x, int y, int color);
void far _Cdecl rectangle(int left, int top, int right, int bottom);
void far _Cdecl restorecrtmode(void);
void far _Cdecl sector( int X, int Y, int StAngle, int EndAngle,
int XRadius, int YRadius );
void far _Cdecl setactivepage(int page);
void far _Cdecl setallpalette(struct palettetype far *palette);
void far _Cdecl setaspectratio( int xasp, int yasp );
void far _Cdecl setbkcolor(int color);
void far _Cdecl setcolor(int color);
void far _Cdecl setfillpattern(char far *upattern, int color);
void far _Cdecl setfillstyle(int pattern, int color);
unsigned far _Cdecl setgraphbufsize(unsigned bufsize);
void far _Cdecl setgraphmode(int mode);
void far _Cdecl setlinestyle(int linestyle, unsigned upattern,
int thickness);
void far _Cdecl setpalette(int colornum, int color);
void far _Cdecl setrgbpalette(int colornum,
int red, int green, int blue);
void far _Cdecl settextjustify(int horiz, int vert);
void far _Cdecl settextstyle(int font, int direction, int charsize);
void far _Cdecl setusercharsize(int multx, int divx,
int multy, int divy);
void far _Cdecl setviewport(int left, int top, int right, int bottom,
int clip);
void far _Cdecl setvisualpage(int page);
void far _Cdecl setwritemode( int mode );
int far _Cdecl textheight(char far *textstring);
int far _Cdecl textwidth(char far *textstring);

/***** graphics drivers *****/

int _Cdecl registerbgidriver(void (*driver)(void));
int far _Cdecl registerfarbgidriver(void far *driver);

/* !! These "functions" are NOT user-callable !! */
/* !! They are there just so you can link in graphics drivers !! */

void _Cdecl CGA_driver(void);
void _Cdecl EGAVGA_driver(void);
void _Cdecl IBM8514_driver(void);
void _Cdecl Herc_driver(void);
void _Cdecl ATT_driver(void);
void _Cdecl PC3270_driver(void);

extern int far _Cdecl CGA_driver_far[];
extern int far _Cdecl EGAVGA_driver_far[];
extern int far _Cdecl IBM8514_driver_far[];
extern int far _Cdecl Herc_driver_far[];
extern int far _Cdecl ATT_driver_far[];
extern int far _Cdecl PC3270_driver_far[];

/***** graphics fonts *****/

int _Cdecl registerbgifont(void (*font)(void));
int far _Cdecl registerfarbgifont(void far *font);

/* !! These "functions" are NOT user-callable, !! */
/* !! they are there just so you can link in fonts !! */

void _Cdecl triplex_font(void);
void _Cdecl small_font(void);
void _Cdecl sansserif_font(void);
void _Cdecl gothic_font(void);

extern int far _Cdecl triplex_font_far[];
extern int far _Cdecl small_font_far[];
extern int far _Cdecl sansserif_font_far[];
extern int far _Cdecl gothic_font_far[];

#endif

首先,你的CGA和CGAC0请换成VGA和VGAHI。

tc下的错误,估计是因为你的路径设置错误导致,请检查一下你的tc设置。
vc下的错误,是因为vc不带有graphics.h,如果需要,可以安装第三方绘图库,你可以下载这个:http://code.google.com/p/vcgraphics/downloads/detail?name=EasyX_V20091123.zip

<graphics.h>是TC里面的图形库,如果要用的话应该用TC来编译,VC++有他自己的另外图形库!

  • C璇█涓殑浣滃浘闂
    绛旓細C璇█涓殑浣滃浘闂 #include"graphics.h"main(){intdriver,mode;driver=CGA;mode=CGAC0;initgraph(&driver,&mode,"");circle(50,40,20);getch();closegraph();}涓轰綍鎴戝湪TC鍜孷C鐜涓嬮兘鎻愮ず鍑洪敊?TC:Und... #include"graphics.h"main(){int driver,mode;driver=CGA;mode=CGAC0;initgraph(&driver,&mode,"...
  • c璇█鏂囨湰浣滃浘缂栫▼棰 姹傚ぇ绁!!!
    绛旓細include<stdio.h>int main(){ int i=0,j=0,k,f1=1,f2=1; for(i=1;i<=5;i++) { k=1; f2=f1; for(j=1;j<=i;j++) { printf("%d ",k*f2); k=k*10+j*2; f2*=-1; } printf("\n"); f1*=-1; } return 0;} ...
  • C璇█缂栫▼涓轰粈涔堜笉鑳鐢诲浘
    绛旓細1. 鍥惧舰妯″紡鐨勫垵濮嬪寲 涓嶅悓鐨勬樉绀哄櫒閫傞厤鍣ㄦ湁涓嶅悓鐨勫浘褰㈠垎杈ㄧ巼銆傚嵆鏄悓涓鏄剧ず鍣ㄩ傞厤鍣, 鍦ㄤ笉鍚屾ā寮忎笅涔熸湁涓嶅悓鍒嗚鲸鐜囥傚洜姝, 鍦ㄥ睆骞浣滃浘涔嬪墠, 蹇呴』鏍规嵁鏄剧ず鍣ㄩ傞厤鍣ㄧ绫诲皢鏄剧ず鍣ㄨ缃垚涓烘煇绉嶅浘褰㈡ā寮, 鍦ㄦ湭璁剧疆鍥惧舰妯″紡涔嬪墠, 寰満绯荤粺榛樿灞忓箷涓烘枃鏈ā寮(80鍒, 25琛屽瓧绗︽ā寮), 姝ゆ椂鎵鏈夊浘褰㈠嚱鏁板潎涓嶈兘宸...
  • 鈥C璇█閿洏杈撳叆姝f暟n,姹俷涓暟鐨勫拰鈥濇祦绋嬪浘鎬庝箞鐢
    绛旓細1.鏂规硶涓锛氭墦寮Word杞欢锛岀偣鍑绘彃鍏ワ紝閫夋嫨浠绘剰鍥惧舰鎻掑叆銆傚湪鍥惧舰鍐呯紪杈戝唴瀹癸紝鐢ㄧ澶翠娇鍚勪釜鍥惧舰鐩歌繛鎺ワ紝浠呭彲鍦╓ord閲浣跨敤銆2.鏂规硶浜岋細鎵撳紑浜垮浘鍦ㄧ嚎缃戠珯寮濮浣滃浘锛岄夋嫨妯℃澘锛屼慨鏀瑰唴瀹癸紝鎻掑叆鐢诲竷銆傞夋嫨娴佺▼鍥剧被鍨嬶紝鍐嶆壘鍒板熀鏈祦绋嬪浘妯℃澘骞舵墦寮銆3.鍙屽嚮娴佺▼鍥惧揩鎹风紪杈戝唴瀹癸紝涔熷彲浠ユ柊寤虹┖鐧界敾甯冧慨鏀逛富棰樻牱寮忋傜粯鍥惧畬鎴...
  • 鍦∕icrosoft Visual C++ 6.0 鐢C璇█浣滃浘
    绛旓細鐢∕FC鐨勮瘽Windows鎻愪緵寰楁湁CDC绫伙紝鏄鐢诲浘鐨勶紝涓嶈繃鍙兘鐢讳竴浜涙爣鍑嗙殑鍥惧舰锛屽鐩寸嚎锛屽渾锛岀煩褰傝鎯崇敾浣犺繖涓鏉傚嚱鏁扮殑鍥惧儚寰楃敤鏈鍩烘湰鐨勭敾鐐瑰嚱鏁帮細SetPixel()璇ュ嚱鏁板皝瑁呭湪CDC绫讳腑锛岃繖灏辫姹備綘瑕佷竴浜涜绠楁満鍥惧舰瀛︾殑鐭ヨ瘑浜嗐傞毦搴﹀緢澶с備絾鏄綘濡傛灉鐢∕atlab杩欎簺鏁板杞欢灏辨樉寰楀緢瀹规槗浜嗐傚叾涓亾鐞嗕綘鍙嚜宸变綋浼氥
  • 缂栧啓绫籐OGO璇█,鐢–++瀹炵幇娴烽緹浣滃浘
    绛旓細闂鎻忚堪:缂栧啓绫籐OGO璇█銆侺OGO璇█鍙堢О浣滄捣榫熻瑷锛岀敱鎿嶄綔鑰呴氳繃涓琛屽懡浠ゆ潵鎺у埗涓涓笁瑙掑舰鐨勬捣榫熺Щ鍔紝娴烽緹鐨勭Щ鍔ㄨ建杩瑰彲浠ュ舰鎴愬悇绉嶅浘妗堛備竴琛岀殑鍛戒护鍙互鍖呮嫭澶氫釜瀛愬懡浠わ紝鎸夌収浠庡乏鍒板彸鐨勯『搴忔墽琛岋紝鐩稿叧鐨勫懡浠ゆ湁锛氬懡浠ゆ牸寮 鍛戒护鑼冧緥 鑼冧緥鍚箟鍓嶈繘 <闀垮害> 鍓嶈繘 100 娴烽緹鍓嶈繘100涓偣鍚庨 <闀垮害> 鍚庨 100 娴烽緹...
  • C璇█浣滃浘鍑芥暟 涓嶅嚭鐜板浘
    绛旓細绋嬪簭杩愯闇瑕佸簱鏂囦欢鏀寔銆傛垨鑰呯紪璇戠殑鏃跺欑洿鎺ユ妸搴撶紪璇戣繘鍘汇
  • c璇█鏂囨湰浣滃浘缂栫▼棰 鍙岄噸寰幆缁撴瀯 鎵撳嵃濡備笅鍥惧舰 姹傚ぇ绁!!!
    绛旓細鎸夌収浣犵殑瑕佹眰缂栧啓鐨C璇█绋嬪簭濡備笅 include <stdio.h>int main(){ int N=4,i,j,k; for(i=1;i<=N;i++){ k=N-1; for(j=1;j<=N-i;j++){ printf(" "); } for(j=1;j<=i;j++){ printf("%d",k--); } k=k+1; for(j=1;j<=i-1;j++){ ...
  • 璁$畻鏈c璇█涓浠涔堟槸E-R鍥,鎬庝箞鐢
    绛旓細E-R鍥句篃绉板疄浣-鑱旂郴鍥(Entity Relationship Diagram)锛屾彁渚涗簡琛ㄧず瀹炰綋绫诲瀷銆佸睘鎬у拰鑱旂郴鐨勬柟娉曪紝鐢ㄦ潵鎻忚堪鐜板疄涓栫晫鐨勬蹇垫ā鍨嬨浣滃浘姝ラ锛氣懘纭畾鎵鏈夌殑瀹炰綋闆嗗悎 鈶甸夋嫨瀹炰綋闆嗗簲鍖呭惈鐨勫睘鎬 鈶剁‘瀹氬疄浣撻泦涔嬮棿鐨勮仈绯 鈶风‘瀹氬疄浣撻泦鐨勫叧閿瓧锛岀敤涓嬪垝绾垮湪灞炴т笂琛ㄦ槑鍏抽敭瀛楃殑灞炴х粍鍚 鈶哥‘瀹氳仈绯荤殑绫诲瀷锛屽湪鐢ㄧ嚎灏嗚〃绀...
  • Mathematica鐨勫嚱鏁浣滃浘闂
    绛旓細Manipulate[Plot[a*x^2+b*x,{x,-10,10},PlotRange->All],{{a,1},-10,10,1},{{b,1},-10,10,1}]绠鍗曡涓涓嬶細{x,-10,10}灏辨槸鍋氬浘鏄剧ず鐨勬í杞寸殑鑼冨洿,濡傛灉浣犳効鎰忓彲浠ユ洿鏀瑰畠鐨勮寖鍥达紱{{a,1},-10,10,1},{{b,1},-10,10,1}杩欐灏辨槸浣犳兂瑕佺殑鍙傛暟a,b鍙彉鐨勯儴鍒嗭紝浣犲彲浠ュ湪...
  • 扩展阅读:扫一扫题目出答案 ... c语言自动生成器 ... 初学编程必背50个 ... c语言基础知识100题 ... c十十编程要学多久 ... c十十编程知识点 ... c十十编程 ... c语言必背100代码 ... c语言过程中遇到的问题 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网