home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day11
/
simple.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-05-02
|
385b
|
25 lines
/* simple.c - Demonstrates the use of a simple structures*/
#include <stdio.h>
int length, width;
long area;
struct coord{
int x;
int y;
} myPoint;
int main( void )
{
/* set values into the coordinates */
myPoint.x = 12;
myPoint.y = 14;
printf("\nThe coordinates are: (%d, %d).",
myPoint.x, myPoint.y);
return 0;
}