int main() { int gdriver, gmode; gdriver=VGA; gmode=VGAHI; initgraph ( &gdriver, &gmode, "c:\\caic\\bgi" ); bar3d ( 100, 100, 300, 250, 50, 1 ); /*画一长方体*/ getch(); closegraph(); return 0; }