69,373
社区成员
发帖
与我相关
我的任务
分享
#ifndef _HEAD_H
#define _HEAD_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SUMJECT_NUM 3
#define MAX_SRUDENT 100
struct student// 学生属性
{
char std_num[10];
char name[20];
float sco[SUMJECT_NUM];
float avg;
};
int count=0; /* 学生数量的计数器; */
char subject[SUMJECT_NUM][20];// 学科名
typedef struct student * poit_List ;
void swap(poit_List *a,poit_List *b);
void mutu(void);
void F_input(poit_List *List);
void file_out(poit_List *List);
void out(poit_List *List);
poit_List * cread_student(poit_List *List);
void check_studend(poit_List *List);
void Modify(poit_List *List);
void Delete(poit_List *List);
void sort(poit_List *List);
void Add(poit_List *List);
void sub(poit_List *List);
#endif
cat test.h
#ifndef _TSET_H_
#define _TEST_H_
int value = 4;
#endif
test.c
#include<stdio.h>
#include "test.h"
#include "test.h"
int main()
{
printf("value is %d\n",value);
return 0;
}
extern int a; //没有非配内存 是声明
extern int a = 0; //非配了内存
extern char dir[MAX_SIZE]; // 非配了内存
extern char *dir[MAX_SIZE]; // 非配了内存
extern char **dir; //是声明 没有非配 内存