⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdc_samp1.c

📁 linux平台下的多系统漏洞扫描工具客户端
💻 C
字号:
/* GDCHART 0.94b  1st CHART SAMPLE  12 Nov 1998 *//* writes gif file to stdout *//* sample gdchart usage *//* this will produce a 3D BAR chart *//* this is suitable for use as a CGI *//* for CGI use un-comment the "Content-Type" line */#include <stdio.h> #include "gdc.h"#include "gdchart.h" main(){    /* ----- set some data ----- */    float   a[6]  = { 0.5, 0.09, 0.6, 0.85, 0.0, 0.90 },            b[6]  = { 1.9, 1.3,  0.6, 0.75, 0.1, 2.0 };    /* ----- X labels ----- */    char    *t[6] = { "Chicago", "New York", "L.A.", "Atlanta", "Paris, MD\n(USA) ", "London" };    /* ----- data set colors (RGB) ----- */    unsigned long   sc[2]    = { 0xFF8080, 0x8080FF };     GDC_BGColor   = 0xFFFFFFL;                  /* backgound color (white) */    GDC_LineColor = 0x000000L;                  /* line color      (black) */    GDC_SetColor  = &(sc[0]);                   /* assign set colors */	GDC_stack_type = GDC_STACK_BESIDE;//    printf( "Content-Type: image/gif\n\n" );    /* tell browser type */                              /* ----- call the lib ----- */    out_graph( 250, 200,      /* short       width, height */               stdout,        /* FILE*       open FILE pointer */               GDC_3DBAR,     /* GDC_CHART_T chart type */               6,             /* int         number of points per data set */               t,             /* char*[]     array of X labels */               2,             /* int         number of data sets */               a,             /* float[]     data set 1 */               b );           /*  ...        data set n */    exit(0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -