在函数外面输入类似int stu_num[7]={1,2,3,4,5,6,7}就OK
在头文件中,extern int stu_num;在.cpp文件的头部#include "头文件"int stu_num;
#Define stu_num 80;