1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 typedef struct stu
 5 {
 6     char name[10];
 7     int score;
 8 }stu_info;
 9 
10 int main()
11 {
12     stu_info sta = {"lanj",99};
13     printf("sta.name=%s\nsta.score=%d",sta.name,sta.score);
14 
15     
16     system("pause");
17     return 0;
18 }

 

相关文章:

  • 2021-11-15
  • 2021-07-15
  • 2022-12-23
  • 2022-02-28
  • 2021-08-27
  • 2021-11-05
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2022-01-17
  • 2021-09-28
  • 2022-01-24
  • 2023-03-29
相关资源
相似解决方案