This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/Lectures/LC19/Structure1/Structure_1.c

27 lines
418 B
C
Raw Permalink Normal View History

2022-04-07 15:58:01 +00:00
#include <stdio.h>
#include <stdlib.h>
struct DataSet /* Define a struture called DataSet */
{
int x; /* The X data */
int y; /* The Y data */
};
int main(void)
{
struct DataSet MyPoints; /* Define structure, type DataSet */
MyPoints.x = 1;
MyPoints.y = 2;
printf("\nThe dataset values are ");
printf("\n\t\t X = %d ",MyPoints.x);
printf("\n\t\t Y = %d ",MyPoints.y);
return 0;
}