91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 78KB
    文件類型: .c
    金幣: 1
    下載: 2 次
    發(fā)布日期: 2021-06-23
  • 語言: C/C++
  • 標(biāo)簽: GTK??

資源簡介

利用GTK工具包,用C語言實(shí)現(xiàn)圖形化界面的學(xué)生成績管理系統(tǒng)

資源截圖

代碼片段和文件信息

/*************************************************************************
????>?File?Name:?main.c
????>?Author:?zhanghaoran
????>?Mail:?chilumanxi@gmail.com
????>?Created?Time:?2015年06月25日?星期四?20時(shí)03分00秒
?************************************************************************/

#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?

#define?OK?2
#define?ERROR?1
typedef?struct?manager{?//管理員
char?id[30];//管理員序號(hào)
char?password[30];//管理員密碼
}admin;

typedef?struct?score{???//學(xué)生成績
char?math[10];
char?english[10];
char?C_program[10];
char?computer[10];
char?PE[10];
/*
?*?高數(shù)?英語?C語言?計(jì)算機(jī)?體育
?*/
}SCORE;

typedef?struct?student{??//學(xué)生信息
char?id[30];//學(xué)號(hào)
char?name[30];//姓名
char?age[10];//年齡
char?password[30];//密碼
char?classes[30];//班級(jí)
SCORE?score;//學(xué)生課程成績
char?rank[5];//總分排名
struct?student?*prev;//鏈表前一結(jié)點(diǎn)
struct?student?*next;//鏈表后一結(jié)點(diǎn)

}stu;

typedef?struct?login{????//登錄所需
GtkWidget?*window;???//登錄窗口
GtkWidget?*id; ?//學(xué)號(hào)
GtkWidget?*password;?//?密碼
GtkWidget?*identify_code;//驗(yàn)證碼
GtkWidget?*label;????//標(biāo)簽
GtkWidget?*radio;????//選項(xiàng)
}LOGIN;

typedef?struct?add{??????//添加功能所需全局變量,參見上面20行
GtkWidget?*window;
GtkWidget?*id;
GtkWidget?*name;
GtkWidget?*password;
GtkWidget?*classes;
GtkWidget?*score_math;
GtkWidget?*score_english;
GtkWidget?*score_C_program;
GtkWidget?*score_computer;
GtkWidget?*score_PE;
GtkWidget?*age;
}ADD;

typedef?struct?del{?//刪除功能
GtkWidget?*window;//刪除窗口
GtkWidget?*entry;//文本框
}DEL;

typedef?struct?save{??????//存儲(chǔ)窗口
GtkWidget?*window;
}SAVE;

typedef?struct?inq{???????//查看學(xué)生信息
GtkWidget?*window;????
GtkWidget?*radio;
GtkWidget?*entry; ?//參見上面10行
}INQ;

typedef?struct?change{?//管理員更改學(xué)生信息功能所需全局變量
GtkWidget?*window;
GtkWidget?*entry;
GtkWidget?*id;
GtkWidget?*name;
GtkWidget?*password;
GtkWidget?*classes;
GtkWidget?*score_math;
GtkWidget?*score_english;
GtkWidget?*score_C_program;
GtkWidget?*score_computer;
GtkWidget?*score_PE;
GtkWidget?*age;
GtkWidget?*new_password;//新密碼
GtkWidget?*re_password;?//再次輸入的密碼
}REV;

typedef?struct?sort{ //排序功能
GtkWidget?*window;?
GtkWidget?*radio;
}SORT;

typedef?struct?pro{
LOGIN?*login;??????????//對(duì)管理員功能的整體定義
ADD?*add;
DEL?*del;
REV?*change;
INQ?*inq;
SAVE?*save;
SORT?*sort;
}ADMIN;

char?nameid[30];??????????//甄別是否是管理員
int?chose;????????????????//在選擇按照什么方式進(jìn)行排序或查詢時(shí)需要
int?count;????????????????//登錄錯(cuò)誤次數(shù)
int?flag;?????????????????//是否更改了信息

stu?*head;
stu?*create();????????????//申請(qǐng)一個(gè)空間
int?init_head(stu?*head);?//初始化鏈表
int?length(stu?*head);????//鏈表長度
int?insert_end(stu?*head?stu?*n);?//尾插
int?del_node(stu?*head);??//刪除結(jié)點(diǎn)函數(shù)
int?insert_cur(stu?*head?char?id[30]?stu?*n);??//在某個(gè)位置進(jìn)行插入
int?destory(stu?*head);???//銷毀鏈表
stu?*find_id_exist(stu?*head?char?id[30]);??//查詢文件中id是否存在,返回位置,不存在返回NULL
stu?*find_name_exist(stu?*head?char?id[30]);//查詢文件中名字是否存在,返回位置,不存在返回NULL
stu?*find_rank_exist(stu?*head?char?id[30]);//查詢文件中該排名是否存在,返回位置,不存在返回NULL
stu?*find_mat

評(píng)論

共有 條評(píng)論