home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clip Art Extravaganza: Business & Home 2
/
CSB2.ISO
/
clip2
/
program2
/
hgrph101.arc
/
DEMO1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-02-25
|
1KB
|
47 lines
/* DEMO1.C - a demo of hgraph.lib's string writing routines */
#include <string.h>
#include <conio.h>
#include "hgraph.h"
char string[40] = "HGRAPH.LIB";
main()
{
int ct;
char c;
ct = strlen(string);
hgraph_init();
hgmode_nc();
hclearpg();
hshowpg();
hstr(40, 1, string, HGINVS, ct);
hstr(20, 10,
"This is a demo of hstr, hchar, and hchar2", HGNORM, 41);
hstr(10, 20,
"This is a sample of hstr with normal attrib", HGNORM,43);
hstr(10, 21,
"This is a sample of hstr with inverse attrib", HGINVS,44);
hchar(80, 200,
"This is a sample of hchar with normal attrib", HGNORM,44);
hchar(80, 209,
"This is a sample of hchar with inverse attrib",HGINVS,45);
hchar2(80, 240,
"This is a sample of hchar2 with normal attrib",HGNORM,45);
hchar2(80, 249,
"This is a sample of hchar2 with inverse attrib",HGINVS,46);
hstr(10, 40,
"Press any key to continue ...", HGNORM, 29);
getch();
htmode_nc();
}