Histogram histogram
2016-08-23
0 0 0
no vote
Other
Earn points
#include "stdafx.h"
#include
#include
#include
#include
#include int main()
{
int GraphDriver;
int GraphMode;
int i, x, y;
char buffer[5];
int data[]={7,3,12,6,9,5,8,11};
int iColor[8]={1,2,3,4,5,6,7,8};
GraphDriver = DETECT; /* Detect graphics device */
initgraph(&GraphDriver, &GraphMode, ""); *//* Initialize graphics device setColor (15); /* Set the foreground color white */
moveto(635, 461); /* Move the brush to point (635,461) */
lineto(20, 461); /* Draw a line from the current to (20,461), and move the brush (20,461), draw x axis */
lineto(20, 20); /* Draw a line from the current to (20,20) and move the brush to (20,20), painted y axis */
setcolor(15); /* Set the foreground color white */for (I = 1; I < 13; i++)
{
itoa(i, buffer, 10); /* Move the I in order to convert a decimal to a string, stored in buffer*/
outtextxy(20 - textw
#include
#include
#include
#include
#include int main()
{
int GraphDriver;
int GraphMode;
int i, x, y;
char buffer[5];
int data[]={7,3,12,6,9,5,8,11};
int iColor[8]={1,2,3,4,5,6,7,8};
GraphDriver = DETECT; /* Detect graphics device */
initgraph(&GraphDriver, &GraphMode, ""); *//* Initialize graphics device setColor (15); /* Set the foreground color white */
moveto(635, 461); /* Move the brush to point (635,461) */
lineto(20, 461); /* Draw a line from the current to (20,461), and move the brush (20,461), draw x axis */
lineto(20, 20); /* Draw a line from the current to (20,20) and move the brush to (20,20), painted y axis */
setcolor(15); /* Set the foreground color white */for (I = 1; I < 13; i++)
{
itoa(i, buffer, 10); /* Move the I in order to convert a decimal to a string, stored in buffer*/
outtextxy(20 - textw
c
直方图
Histogram
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment