当前位置:首页 » 网页前端 » 学生管理系统前端后端模板
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

学生管理系统前端后端模板

发布时间: 2023-01-24 17:27:04

‘壹’ Java实现一个简单的学生信息管理系统

稍等吧 现在帮你写个 不是难事 写出来通知你 需要数据库吗?

还在不?

Student 类
public class Student
{
private int id;

private int age;

private int score;

private String name;

public Student()
{

}

public Student(int id, int age, int score, String name)
{
this.id = id;
this.age = age;
this.score = score;
this.name = name;
}

public int getId()
{
return id;
}

public void setId(int id)
{
this.id = id;
}

public int getAge()
{
return age;
}

public void setAge(int age)
{
this.age = age;
}

public int getScore()
{
return score;
}

public void setScore(int score)
{
this.score = score;
}

public String getName()
{
return name;
}

public void setName(String name)
{
this.name = name;
}

@Override
public String toString()
{
return "学号:" + id + " 姓名:" + name + " 年龄:" + age + " 成绩:" + score;
}
}

Manager类
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Manager
{
private List<Student> list;

public Manager(List<Student> list)
{
this.list = list;
}

public List<Student> getList()
{
return list;
}

public void setList(List<Student> list)
{
this.list = list;
}

//添加学生
public void add(Student s)
{
list.add(s);
}

//根据学生学号返回学生年龄
public int search(int id)
{
for(Iterator<Student> iter = list.iterator(); iter.hasNext();)
{
Student s = iter.next();

if(s.getId() == id)
{
return s.getAge();
}
}
return -1;
}

//删除学生
public void remove(int id)
{
for(Iterator<Student> iter = list.iterator(); iter.hasNext();)
{
Student s = iter.next();

if(s.getId() == id)
{
list.remove(s);
}
}
}

//计算总成绩
public int allScore()
{
int score = 0;
int temp = 0;

for(Iterator<Student> iter = list.iterator(); iter.hasNext();)
{
Student s = iter.next();

temp = s.getScore();

score += temp;
}

return score;
}

//修改成绩
public void update(int id)
{
for(Iterator<Student> iter = list.iterator(); iter.hasNext();)
{
Student s = iter.next();

if(s.getId() == id)
{
s.setScore(s.getScore() + 10);
}
}
}
}

测试类 Client
import java.util.ArrayList;
import java.util.List;

public class Client
{
public static void main(String[] args)
{
List<Student> list = new ArrayList<Student>();

Manager manager = new Manager(list);//创建一个管理者

Student s1 = new Student();//无参构造方法创建的学生实例

//通过方法设置s1的属性
s1.setId(201105);
s1.setAge(20);
s1.setScore(100);
s1.setName("zhangsan");

Student s2 = new Student(201101,21,98,"lisi");//通过带参数的构造方法创建实例
Student s3 = new Student(201108,25,95,"zhaoliu");
Student s4 = new Student(201110,23,80,"xiaoming");
Student s5 = new Student(201106,28,78,"hello");

//放到集合当中
manager.getList().add(s1);//添加学生
manager.getList().add(s2);
manager.getList().add(s3);
manager.getList().add(s4);
manager.getList().add(s5);

System.out.println(list);

System.out.println(manager.allScore());

System.out.println(manager.search(201110));//根据学生学号查询学生年龄

manager.remove(201110);//删除学生

manager.update(201101);//修改成绩

}
}
可以完成你上述的基本要求,如果改动可以自行修改 很简单。

‘贰’ 设计一个学生信息管理系统

#include #include #include #define MAX 1000 /*定义学生成绩信息结构*/ struct stu { char id[8]; char name[8]; double Chinese; double Math; double English; double average; double total; }; /*学生结构数组,用于存储学生成绩信息*/ struct stu students[MAX]; /*当前学生人数*/ int current; void input() { int i; printf("请输入学生人数:"); scanf("%d", & current); for (i = 0; i < current; i++) { printf("\n请输入学生学号,最多为7位数: "); scanf("%s", students[i].id); printf("请输入学生姓名:"); scanf("%s", students[i].name); printf("请输入语文成绩:"); scanf("%lf", &students[i].Chinese); printf("请输入数学成绩:"); scanf("%lf", &students[i].Math); printf("请输入英语成绩:"); scanf("%lf", &students[i].English); students[i].total = students[i].Chinese + students[i].Math + students[i].English; students[i].average = students[i].total / 3; } } /*排名次,即对学生结构数组排序*/ void sort(struct stu array[], int n) { int i, j; struct stu temp; for (i = 0; i < n; i++) { for (j = i+1; j < n; j++) { if (array[i].average - array[j].average < 1e-16) { temp = array[i]; array[i] = array[j]; array[j] = temp; } } } } /*统计平均成绩,并输出各分数段的人数*/ void print_score(struct stu array[], int n) { int i; double ave = 0; int sum1 = 0, sum2 = 0, sum3 = 0, sum4 = 0; for (i = 0; i < n; i++) { ave += array[i].average; switch ((int)(array[i].average / 10)) { case 10: case 9: sum1++; break; case 8: sum2++; break; case 7: case 6: sum3++; break; default: sum4++; } } printf("全班的平均分为:%.1f\n", ave/n); printf("平均分在90分以上的人数为:%d\n", sum1); printf("平均分在80~89的人数为:%d\n", sum2); printf("平均分在60~79的人数为:%d\n", sum3); printf("平均分在60分以下的人数为:%d\n", sum4); } /*输出不及格科目及学生名单*/ void print_unreach(struct stu array[], int n) { int i; printf("科目\t学号\t名字\n"); for (i = 0; i < n; i++) { if (array[i].Chinese < 60) { printf("语文\t%s\t%s\n", array[i].id, array[i].name); } if (array[i].Math < 60) { printf("数学\t%s\t%s\n", array[i].id, array[i].name); } if (array[i].English 60) { printf("英语\t%s\t%s\n", array[i].id, array[i].name); } } } /*打印优等生名单*/ void print_good(struct stu array[], int n) { int i; char mark = 0; if (n > 3) { n = 3; } printf("学号\t姓名\t语文\t数学\t英语\t平均分\t名次\n"); for (i = 0; i n; i++) { if ((array[i].Chinese > 60) && (array[i].Math > 60) && (array[i].English > 60)) { if (array[i].average > 90) mark = 1; else if (array[i].average > 85) { if (array[i].Chinese == 100) mark = 1; if (array[i].Math == 100) mark = 1; if (array[i].English == 100) mark = 1; if (array[i].Chinese > 95 && array[i].English > 95) mark = 1; if (array[i].Chinese > 95 && array[i].Math > 95) mark = 1; if (array[i].Math > 95 && array[i].English > 95) mark = 1; } if (mark == 1) { printf("%s\t%s\t", array[i].id, array[i].name); printf("%.f\t%.f\t%.f\t%.1f\t", array[i].Chinese, array[i].Math, array[i].English, array[i].average); printf("%d\n", i+1); } } } } /*按学生姓名查询成绩*/ void search_name(struct stu array[], int n, char* name) { int i; char mark = 1; for (i = 0; i < n; i++) { if (strcmp(name, array[i].name) == 0) { printf("学生姓名:%s\n", name); printf("学生学号:%s\n", array[i].id); printf("语文:%.f\n", array[i].Chinese); printf("数学:%.f\n", array[i].Math); printf("英语:%.f\n", array[i].English); printf("平均分:%.1f\n", array[i].average); mark = 0; } } if (mark == 1) puts("不存在该学生记录"); } /*按学生学号查询成绩*/ void search_id(struct stu array[], int n, char* id) { int i; char mark = 1; for (i = 0; i < n; i++) { if (strcmp(id, array[i].id) == 0) { printf("学生姓名:%s\n", array[i].name); printf("学生学号:%s\n", array[i].id); printf("语文:%.f\n", array[i].Chinese); printf("数学:%.f\n", array[i].Math); printf("英语:%.f\n", array[i].English); printf("平均分:%.1f\n", array[i].average); mark = 0; break; } } if (mark == 1) puts("不存在该学生记录"); } void print_menu() { system("cls"); printf("1.输入学生信息\n"); puts("2.统计全班学生成绩"); puts("3.按学号查询学生成绩"); puts("4.按姓名查询学生成绩"); puts("5.输出不及格情况"); puts("6.输出优等生名单"); puts("0.退出本程序"); printf("\n\n 请输入你的选择:"); } int main(int argc, char **argv) { char ch = 0; char id[8], name[8]; while (ch != '0') { print_menu(); ch = getchar(); switch (ch) { case '1': { system("cls"); input(); sort(students, current); break; } case '2': { system("cls"); print_score(students, current); break; } case '3': { system("cls"); printf("请输入学号:"); scanf("%s", id); search_id(students, current, id); break; } case '4': { system("cls"); printf("请输入姓名:"); scanf("%s", name); search_name(students, current, name); break; } case '5': { system("cls"); print_unreach(students, current); break; } case '6': { system("cls"); print_good(students, current); break; } case '0': exit(0); } printf("\n\n按任意键返回主菜单……"); getchar(); getchar(); } return 0; }

‘叁’ 学校的课程设计,要做一个网页版学生信息管理系统,数据库我打算用mysql,那前端网页该用什么做呢

前端:html5,css,js
服务端:php
数据库:mysql

‘肆’ 采用MVC模式设计并实现学生信息管理系统

哦哦,我用PHP MVC [自己写的]写了简单的管理员登录,增删改查用户,普通用户只能注册与登陆和更改密码,前后台分离,共用类库存[M,C],使用SMARTY 当模板,使用MySQLi 与 memcache 做数据库与缓存, 带日志功能

‘伍’ 用java编写一个学生信息管理系统,要有美观的ui界面,增删改查,数据用

界面使用建议用bootstrap,后台框架你可以用ssh ,ssm,或者原生态的servlet。数据库用mysql就行了。

‘陆’ 学生成绩管理系统前端后端区别

前端开发是让站点和web应用程序在客户端呈现,而后端开发则是让这些应用程序在服务器端呈现。但它比这要复杂一点。虽然前面的说法是正确的

‘柒’ 用C++设计一个简单的学生管理系统

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define NULL 0

struct student{
char name[100];
char xuehao[100];
char gradeandclass[100];
int Mathnumber;
int Mathscore;
int Englishnumber;
int Englishscore;
int Politicsnumber;
int Politicsscore;
int Coursesnumber;
int Coursesscore;
};

int main()
{
FILE *fp;
char a;
fp = fopen( "学籍管理系统.txt", "ab+" );
if( fp == NULL )
{
printf( "打开文件失败!\n" );
exit(1);
}
while(1)
{
int i;
int j;
a='y';
printf( "---------------------欢迎使用学籍管理系统-------------------------\n" );
printf( "|*| 请进行选择 |*|\n" );
printf( "|*| 1.录入学生信息 |*|\n" );
printf( "|*| 2.显示学生信息 |*|\n" );
printf( "|*| 3.查找学生信息 |*|\n" );
printf( "|*| 4.清除学生信息 |*|\n" );
printf( "|*| 5.退出管理系统 |*|\n" );
printf( "------------------------------------------------------------------\n" );
printf( "请选择操作的序号:" );
scanf( "%d", &i );
switch(i)
{
case 1:
{
while(a=='y'){
struct student *p = ( student* ) malloc ( sizeof( struct student ) );

if( p == NULL )
{
printf( "内存分配失败!\n" );
exit(1);
}

printf( "姓名:" );
scanf( "%s", p->name );

printf( "学号:" );
scanf( "%s", p->xuehao );

printf( "班级:" );
scanf( "%s", p->gradeandclass );

printf( "《数 学》编号:" );
scanf( "%d", &p->Mathnumber );
printf( "《数 学》成绩:" );
scanf( "%d", &p->Mathnumber );
printf( "《英 语》编号:" );
scanf( "%d", &p->Englishnumber );
printf( "《英 语》成绩:" );
scanf( "%d", &p->Englishscore );
printf( "《政 治》编号:" );
scanf( "%d", &p->Politicsnumber );
printf( "《政 治》成绩:" );
scanf( "%d", &p->Politicsscore );
printf( "《专业课》编号:" );
scanf( "%d", &p->Coursesnumber );
printf( "《专业课》成绩:" );
scanf( "%d", &p->Coursesscore );

printf("如果继续输入学籍信息,请输入y否则输入n \n");
getchar();
a=getchar();
fwrite( p, sizeof( struct student ), 1, fp );
free(p);
p = NULL;
}
}
system( "pause" );
system( "cls" );
break;
case 2:
{
struct student *p = ( student* ) malloc ( sizeof( struct student ) );
if( p == NULL )
{
printf( "内存分配失败!\n" );
exit(1);
}
rewind(fp);
while( !feof(fp) )
{
if( fread( p, sizeof( struct student ), 1, fp ) )
{
printf( "*****************************************\n");
printf( "姓名:%s 学号:%s 班级:%s\n", p->name, p->xuehao, p->gradeandclass );
printf( "----课程名称----课程编号----课程成绩----\n" );
printf( " 数 学 %8d %8d\n", p->Mathnumber, p->Mathnumber );
printf( " 英 语 %8d %8d\n", p->Englishnumber, p->Englishscore );
printf( " 政 治 %8d %8d\n", p->Politicsnumber, p->Politicsscore );
printf( " 专业课 %8d %8d\n", p->Coursesnumber, p->Coursesscore );
printf( "*****************************************\n");
printf( " " );
}
}
free(p);
p = NULL;
}
system( "pause" );
system( "cls" );
break;
case 3:{
printf("----欢迎进入查找单元!!---------\n");
printf("------请选择查找方式:\n");
printf("1.按姓名 -- 2.按学号 -- 3.按班级 ");
scanf("%d",&j);
switch(j){
case(1):
{
char number1[20];
int m=0;
printf("输入查找学生的姓名:");
scanf("%s",number1);

struct student *p = ( student* ) malloc ( sizeof( struct student ) );
if(p==NULL){
printf("内存分配失败!\n");
exit(1);
}
rewind(fp);
while(!feof(fp)){
if( fread( p, sizeof( struct student ), 1, fp ) ){
if(strcmp( p->name, number1 ) == 0 ){
m++;
printf( "*****************************************\n");
printf( "姓名:%s 学号:%s 班级:%s\n", p->name, p->xuehao, p->gradeandclass );
printf( "----课程名称----课程编号----课程成绩----\n" );
printf( " 数 学 %8d %8d\n", p->Mathnumber, p->Mathnumber );
printf( " 英 语 %8d %8d\n", p->Englishnumber, p->Englishscore );
printf( " 政 治 %8d %8d\n", p->Politicsnumber, p->Politicsscore );
printf( " 专业课 %8d %8d\n", p->Coursesnumber, p->Coursesscore );
printf( "*****************************************\n");
printf( " " );
}//end if
}//end if
}//end while
if(!m){
printf("信息不存在!!");
}
}
system( "pause" );
system( "cls" );
break;

case(2):
{
char number[20];
int n = 0;
// int count=0;
printf( "输入查找的学生学号:" );
scanf( "%s", number );
struct student *p = ( student* ) malloc ( sizeof( struct student ) );
if( p == NULL )
{
printf( "内存分配失败!\n" );
exit(1);
}
rewind( fp );
while( !feof(fp) )
{

if( fread( p, sizeof( struct student ), 1, fp ) )
{
// printf("循环次数:%d\n n的值:%d\n 地址p的值%d\n",count,n,p);
if( strcmp( p->xuehao, number ) == 0 )
{
n++;
printf( "*****************************************\n");
printf( "姓名:%s 学号:%s 班级:%s\n", p->name, p->xuehao, p->gradeandclass );
printf( "----课程名称----课程编号----课程成绩----\n" );
printf( " 数 学 %8d %8d\n", p->Mathnumber, p->Mathnumber );
printf( " 英 语 %8d %8d\n", p->Englishnumber, p->Englishscore );
printf( " 政 治 %8d %8d\n", p->Politicsnumber, p->Politicsscore );
printf( " 专业课 %8d %8d\n", p->Coursesnumber, p->Coursesscore );
printf( "*****************************************\n");
printf( " " );
}
}

}
if(!n)
printf( "信息不存在!\n" );

}//end case(2 j)
system( "pause" );
system( "cls" );
break;

case(3):
{ char number2[20];
int k=0;
printf("输入查找的学生班级:");
scanf("%s",number2);
struct student *p = ( student* ) malloc ( sizeof( struct student ) );
if(p==NULL){
printf( "内存分配失败!\n" );
exit(1);
}
rewind(fp);
while(!feof(fp)){
if( fread(p,sizeof( struct student ),1,fp) ){
if( strcmp( p->gradeandclass , number2)==0){
k++;
printf( "*****************************************\n");
printf( "姓名:%s 学号:%s 班级:%s \n", p->name, p->xuehao, p->gradeandclass );
printf( "----课程名称----课程编号----课程成绩----\n" );
printf( " 数 学 %8d %8d\n", p->Mathnumber, p->Mathnumber );
printf( " 英 语 %8d %8d\n", p->Englishnumber, p->Englishscore );
printf( " 政 治 %8d %8d\n", p->Politicsnumber, p->Politicsscore );
printf( " 专业课 %8d %8d\n", p->Coursesnumber, p->Coursesscore );
printf( "*****************************************\n");
printf( " " );
}//end if
}//end if
}//end while
if(!k){
printf("信息不存在!!!\n");
}

}//end case(3 j)
system( "pause" );
system( "cls" );
break;
}//end switch(j)

}//end case(3) i

system( "pause" );
system( "cls" );
break;

case(4):
{
printf("1.确定删除 -- 2.返回 \n");
int b;
scanf("%d",&b);
switch(b){
case(1):
{
fp = fopen( "学籍管理系统.txt", "w+" );
// break;
system( "cls" );
}
case(2):
{
break;
}
} //end Switch(b)

}//end case(4)
break;

case 5:
exit(0);
break;
default:printf("输入无效!\n");
system( "pause" );
system( "cls" );
}
}
fclose(fp);
return 0;
}

你还需要什么内容看着加就可以了。。

‘捌’ 做一个Java的学生管理系统,怎么做啊救急!

先把数据库弄出来,不管对不对,有啥弄啥,错了后面再改,然后去写实体类,写完去写sql接口,可以去找模板,CURD,最后就是简单页面了

‘玖’ 学生信息管理系统最简单源代码。

方法一:

1、创建一个c语言项目。然后右键头文件,创建一个Stu的头文件。