home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1990
/
number5
/
indmem.c
< prev
next >
Wrap
Text File
|
1990-09-07
|
363b
|
24 lines
struct screencoords
{
int x;
int y;
} coords;
void printcoords( struct screencoords *val );
main()
{
coords.x = 100;
coords.y = 200;
printcoords( &coords );
}
void printcoords( struct screencoords *val )
{
printf( "X coordinate = %d\n", val->x );
printf( "Y coordinate = %d\n", val->y );
}