#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 22:03:35   
                                阅读次数:
75
                             
                         
                    
                        
                            
                            
                                    若struct后面接的是名字,则其为该结构体的名称。第一种是最基本的结构体定义,其定义了一个结构体A。 struct A //第一种 { int a; }; 第二种则是在定义了一个结构体B的同时定义了一个结构体B的变量m。 struct B //第二种 { int b; }m; 第三种结构体定义没有 ...
                            
                            
                                分类:
编程语言   时间:
2019-12-24 20:20:55   
                                阅读次数:
128
                             
                         
                    
                        
                            
                            
                                #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 18:34:44   
                                阅读次数:
61
                             
                         
                    
                        
                            
                            
                                #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 15:36:05   
                                阅读次数:
62
                             
                         
                    
                        
                            
                            
                                恢复内容开始 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 15:20:50   
                                阅读次数:
76
                             
                         
                    
                        
                            
                            
                                #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 14:07:41   
                                阅读次数:
67
                             
                         
                    
                        
                            
                            
                                    输入n行不同学生的name性别id和成绩,输出成绩最高的女生名字和id,成绩最低的男生名字和id求出二者的差 如果有性别缺少,输出Absent并在结果行输出NA 注意变量不要搞混,可以用结构体……不过似乎没有太大必要性 1 #include <cstdio> 2 #include <string.h ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 14:01:34   
                                阅读次数:
172
                             
                         
                    
                        
                            
                            
                                    #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;  ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 13:55:50   
                                阅读次数:
54
                             
                         
                    
                        
                            
                            
                                实验结论 part 1 ex1_2.cpp #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 13:53:53   
                                阅读次数:
47
                             
                         
                    
                        
                            
                            
                                #include <stdio.h>#include <stdlib.h>const int N=5;// 定义结构体类型struct student,并定义STU为其别名 typedef struct student {long no;char name[20];int score; }STU;/ ...
                            
                            
                                分类:
其他好文   时间:
2019-12-24 13:37:21   
                                阅读次数:
62