tc库函数(字母b开头)


日期:
2005-8-27 22:03:00
来源:
信息学奥林匹克
作者:
编辑
vivian
函数名: bar  

功  能: 画一个二维条形图  

用  法: void far bar(int left, int top, int right, int bottom);  

程序例:  

#include <graphics.h>  

#include <stdlib.h>  

#include <stdio.h>  

#include <conio.h>  

  

int main(void)  

{  

   /* request auto detection */  

   int gdriver = DETECT, gmode, errorcode;  

   int midx, midy, i;  

  

   /* initialize graphics and local variables */  

   initgraph(&gdriver, &gmode, "");  

  

   /* read result of initialization */  

   errorcode = graphresult();  

   if (errorcode != grOk)  /* an error occurred */  

   {  

      printf("Graphics error: %s\n", grapherrormsg(errorcode));  

      printf("Press any key to halt:");  

      getch();  

      exit(1); /* terminate with an error code */  

   }  

  

此文共有15页 上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 下一页

关闭窗口

   兆联特别申明
1)除本站特殊规定外,本站所有信息均不拥有版权,仅供学习参考!
2)站内大部分内容注明出处及详细信息,版权归作者所有!如果您觉得不妥请及时与我站联系,我们将立即删除。
3)本站提供的资料您只有阅读权,并不等于您得到文章的所有权,本站反对将我站提供的资料直接使用。