#define _CRT_SECURE_NO_DEPRECATE
#include
#include
void main() {
struct Member {
char ID[7];
char name[10];
char sex;
int age;
int points;
};
typedef Member ok;
ok mem;
printf("Input member ID:");
scanf("%s", mem.ID);
printf("Input member name:");
scanf("%s", mem.name);
getchar();
printf("Input member sex:");
scanf("%c", &mem.sex);
getchar();
printf("Input member age:");
scanf("%d", &mem.age);
getchar();
printf("Input member points:");
scanf("%d", &mem.points);
printf("ID Name Sex Age Points \n");
printf("%s %s %c %d %d ", mem.ID, mem.name,mem.sex, mem.age, mem.points);
system("pause");
}
typedef struct mem ok