1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> struct student { int number; char name[10]; double grade; }; int main(void) { struct student s; s.number = 20170001; strcpy(s.name, "È«±æµ¿"); s.grade = 4.3; printf("Çйø: %d\n", s.number); printf("À̸§: %s\n", s.name); printf("ÇÐÁ¡: %f\n", s.grade); return 0; } | cs |