JAVA语言课堂测试01源代码(学生成绩管理系统)
package 考试;
/*信1807-8
* 20183798
* 向瑜
*/
import java.util.Scanner;
//ScoreInformation 类
class ScoreInformation {
private String stunumber;
private String name;
private double mathematicsscore;
private double englishscore;
private double networkscore;
private double databasescore;
private double softwarescore;
public ScoreInformation() {
}
public ScoreInformation(String stunumber, String name, double mathematicsscore, double englishscore,
double networkscore, double databasescore, double softwarescore) {
this.stunumber = stunumber;
this.name = name;
this.mathematicsscore = mathematicsscore;
this.englishscore = englishscore;
this.networkscore = networkscore;
this.databasescore = databasescore;
this.softwarescore = softwarescore;
}
public String getstunumber() {
return stunumber;
}
public void setstunumber(String stunumber) {
this.stunumber = stunumber;
}
public String getname() {
return name;
}
public void setname(String name) {
this.name = name;
}
public double getmathematicsscore() {
return mathematicsscore;
}
public void setmathematicsscore(double mathematicsscore) {
this.mathematicsscore = mathematicsscore;
}
public double getenglishscore() {
return englishscore;
}
public void setenglishscore(double englishscore) {
this.englishscore = englishscore;
}
public double getnetworkscore() {
return networkscore;
}
public void setnetworkscore(double networkscore) {
this.networkscore = networkscore;
}
public double getdatabasescore() {
return databasescore;
}
public void setdatabasescore(double databasescore) {
this.databasescore = databasescore;
}
public double getsoftwarescore() {
return softwarescore;
}
public void setsoftwarescore(double softwarescore) {
this.softwarescore = softwarescore;
}
}
class ScoreManagement {
static Scanner scan = new Scanner(System.in);
static Scanner sc = new Scanner(System.in);
static boolean ll = false;
static boolean l = false;
static ScoreInformation[] a = new ScoreInformation[5];
static void xiang() {
a[0] = new ScoreInformation("11111111", "向", 0, 0, 0, 0, 0);
a[1] = new ScoreInformation("22222222", "瑜", 0, 0, 0, 0, 0);
a[2] = new ScoreInformation("33333333", "向瑜", 0, 0, 0, 0, 0);
a[3] = new ScoreInformation("44444444", "瑜向", 0, 0, 0, 0, 0);
a[4] = new ScoreInformation("55555555", "向瑜向", 0, 0, 0, 0, 0);
}
static int i;
public static void enter() {
while (ll = true) {
System.out.println("***********************************************");
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("请输入学生学号:");
System.out.println("***********************************************");
String n1 = sc.next();
for (i = 0; i < 5; i++)
if (n1.equals(a[i].getstunumber())) {
l = true;
break;
}
if (l) {
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("请输入高等数学成绩:");
a[i].setmathematicsscore(sc.nextDouble());
System.out.println("请输入大学英语成绩:");
a[i].setenglishscore(sc.nextDouble());
System.out.println("请输入计算机网络成绩:");
a[i].setnetworkscore(sc.nextDouble());
System.out.println("请输入数据库成绩:");
a[i].setdatabasescore(sc.nextDouble());
System.out.println("请输入软件工程成绩:");
a[i].setsoftwarescore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("大学英语成绩:" + a[i].getenglishscore());
System.out.println("计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("数据库成绩:" + a[i].getdatabasescore());
System.out.println("软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("该学生成绩录入完毕,是否提交(Y/N)");
System.out.println("***********************************************");
String n2 = sc.next();
if (n2.equals("Y")) {
System.out.println("录入成功!!");
break;
} else {
a[i].setmathematicsscore(0);
a[i].setenglishscore(0);
a[i].setnetworkscore(0);
a[i].setdatabasescore(0);
a[i].setsoftwarescore(0);
System.out.println("录入失败!!");
ll = true;
}
} else {
System.out.println("该学号不存在!!!");
ll = true;
}
}
}
public static void updata() {
double d1, d2, d3, d4, d5;
d1 = a[i].getmathematicsscore();
d2 = a[i].getenglishscore();
d3 = a[i].getnetworkscore();
d4 = a[i].getdatabasescore();
d5 = a[i].getsoftwarescore();
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩修改界面");
System.out.println("***********************************************");
System.out.println(" 请输入学生学号:");
String n3 = sc.next();
System.out.println("***********************************************");
for (i = 0; i < 5; i++)
if (n3.equals(a[i].getstunumber())) {
l = true;
break;
}
if (l) {
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println("请选择需要修改的选项");
}
int k = sc.nextInt();
switch (k) {
case 1:
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 请输入修改后的高等数学成绩:");
System.out.println("***********************************************");
a[i].setmathematicsscore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println(" 该学生成绩录入完毕,是否提交(Y/N)");
String n2 = sc.next();
if (n2.equals("Y"))
System.out.println("修改成功!!");
else {
a[i].setmathematicsscore(d1);
a[i].setenglishscore(d2);
a[i].setnetworkscore(d3);
a[i].setdatabasescore(d4);
a[i].setsoftwarescore(d5);
System.out.println("录入失败!!");
}
break;
case 2:
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 请输入修改后的大学英语成绩:");
System.out.println("***********************************************");
a[i].setenglishscore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println(" 该学生成绩录入完毕,是否提交(Y/N)");
String n4 = sc.next();
if (n4.equals("Y"))
System.out.println("修改成功!!");
else {
a[i].setmathematicsscore(d1);
a[i].setenglishscore(d2);
a[i].setnetworkscore(d3);
a[i].setdatabasescore(d4);
a[i].setsoftwarescore(d5);
System.out.println("录入失败!!");
}
break;
case 3:
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 请输入修改后的计算机网络成绩:");
System.out.println("***********************************************");
a[i].setnetworkscore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println(" 该学生成绩录入完毕,是否提交(Y/N)");
String n5 = sc.next();
if (n5.equals("Y"))
System.out.println("修改成功!!");
else {
a[i].setmathematicsscore(d1);
a[i].setenglishscore(d2);
a[i].setnetworkscore(d3);
a[i].setdatabasescore(d4);
a[i].setsoftwarescore(d5);
System.out.println("录入失败!!");
}
break;
case 4:
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 请输入修改后的数据库成绩:");
System.out.println("***********************************************");
a[i].setdatabasescore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println(" 该学生成绩录入完毕,是否提交(Y/N)");
String n6 = sc.next();
if (n6.equals("Y"))
System.out.println("修改成功!!");
else {
a[i].setmathematicsscore(d1);
a[i].setenglishscore(d2);
a[i].setnetworkscore(d3);
a[i].setdatabasescore(d4);
a[i].setsoftwarescore(d5);
System.out.println("录入失败!!");
}
break;
case 5:
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 请输入修改后的软件工程成绩:");
System.out.println("***********************************************");
a[i].setsoftwarescore(sc.nextDouble());
System.out.println("***********************************************");
System.out.println("石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println("学生考试成绩录入");
System.out.println("***********************************************");
System.out.println("学生学号:" + a[i].getstunumber());
System.out.println("学生姓名:" + a[i].getname());
System.out.println("1、高等数学成绩:" + a[i].getmathematicsscore());
System.out.println("2、大学英语成绩:" + a[i].getenglishscore());
System.out.println("3、计算机网络成绩:" + a[i].getnetworkscore());
System.out.println("4、数据库成绩:" + a[i].getdatabasescore());
System.out.println("5、软件工程成绩:" + a[i].getsoftwarescore());
System.out.println("***********************************************");
System.out.println(" 该学生成绩录入完毕,是否提交(Y/N)");
String n7 = sc.next();
if (n7.equals("Y"))
System.out.println("修改成功!!");
else {
a[i].setmathematicsscore(d1);
a[i].setenglishscore(d2);
a[i].setnetworkscore(d3);
a[i].setdatabasescore(d4);
a[i].setsoftwarescore(d5);
System.out.println("录入失败!!");
}
break;
}
}
public static void count() {
while (ll = true) {
double t1, t2, t3, t4, t5;
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩绩点计算界面 ");
System.out.println("***********************************************");
System.out.println(" 请输入学生学号:");
String n4 = sc.next();
System.out.println("***********************************************");
for (i = 0; i < 5; i++)
if (n4.equals(a[i].getstunumber())) {
l = true;
break;
}
if (l) {
if (a[i].getmathematicsscore() >= 90)
t1 = 4.0;
else if (a[i].getmathematicsscore() >= 85 && a[i].getmathematicsscore() <= 89.9)
t1 = 3.7;
else if (a[i].getmathematicsscore() >= 82 && a[i].getmathematicsscore() <= 84.9)
t1 = 3.3;
else if (a[i].getmathematicsscore() >= 78 && a[i].getmathematicsscore() <= 81.9)
t1 = 3.0;
else if (a[i].getmathematicsscore() >= 75 && a[i].getmathematicsscore() <= 77.9)
t1 = 2.7;
else if (a[i].getmathematicsscore() >= 72 && a[i].getmathematicsscore() <= 74.9)
t1 = 2.3;
else if (a[i].getmathematicsscore() >= 68 && a[i].getmathematicsscore() <= 71.9)
t1 = 2.0;
else if (a[i].getmathematicsscore() >= 66 && a[i].getmathematicsscore() <= 67.9)
t1 = 1.7;
else if (a[i].getmathematicsscore() >= 64 && a[i].getmathematicsscore() <= 65.9)
t1 = 1.5;
else if (a[i].getmathematicsscore() >= 60 && a[i].getmathematicsscore() <= 63.9)
t1 = 1.0;
else
t1 = 0;
if (a[i].getenglishscore() >= 90)
t2 = 4.0;
else if (a[i].getenglishscore() >= 85 && a[i].getenglishscore() <= 89.9)
t2 = 3.7;
else if (a[i].getenglishscore() >= 82 && a[i].getenglishscore() <= 84.9)
t2 = 3.3;
else if (a[i].getenglishscore() >= 78 && a[i].getenglishscore() <= 81.9)
t2 = 3.0;
else if (a[i].getenglishscore() >= 75 && a[i].getenglishscore() <= 77.9)
t2 = 2.7;
else if (a[i].getenglishscore() >= 72 && a[i].getenglishscore() <= 74.9)
t2 = 2.3;
else if (a[i].getenglishscore() >= 68 && a[i].getenglishscore() <= 71.9)
t2 = 2.0;
else if (a[i].getenglishscore() >= 66 && a[i].getenglishscore() <= 67.9)
t2 = 1.7;
else if (a[i].getenglishscore() >= 64 && a[i].getenglishscore() <= 65.9)
t2 = 1.5;
else if (a[i].getenglishscore() >= 60 && a[i].getenglishscore() <= 63.9)
t2 = 1.0;
else
t2 = 0;
if (a[i].getnetworkscore() >= 90)
t3 = 4.0;
else if (a[i].getnetworkscore() >= 85 && a[i].getnetworkscore() <= 89.9)
t3 = 3.7;
else if (a[i].getnetworkscore() >= 82 && a[i].getnetworkscore() <= 84.9)
t3 = 3.3;
else if (a[i].getnetworkscore() >= 78 && a[i].getnetworkscore() <= 81.9)
t3 = 3.0;
else if (a[i].getnetworkscore() >= 75 && a[i].getnetworkscore() <= 77.9)
t3 = 2.7;
else if (a[i].getnetworkscore() >= 72 && a[i].getnetworkscore() <= 74.9)
t3 = 2.3;
else if (a[i].getnetworkscore() >= 68 && a[i].getnetworkscore() <= 71.9)
t3 = 2.0;
else if (a[i].getnetworkscore() >= 66 && a[i].getnetworkscore() <= 67.9)
t3 = 1.7;
else if (a[i].getnetworkscore() >= 64 && a[i].getnetworkscore() <= 65.9)
t3 = 1.5;
else if (a[i].getnetworkscore() >= 60 && a[i].getnetworkscore() <= 63.9)
t3 = 1.0;
else
t3 = 0;
if (a[i].getdatabasescore() >= 90)
t4 = 4.0;
else if (a[i].getdatabasescore() >= 85 && a[i].getdatabasescore() <= 89.9)
t4 = 3.7;
else if (a[i].getdatabasescore() >= 82 && a[i].getdatabasescore() <= 84.9)
t4 = 3.3;
else if (a[i].getdatabasescore() >= 78 && a[i].getdatabasescore() <= 81.9)
t4 = 3.0;
else if (a[i].getdatabasescore() >= 75 && a[i].getdatabasescore() <= 77.9)
t4 = 2.7;
else if (a[i].getdatabasescore() >= 72 && a[i].getdatabasescore() <= 74.9)
t4 = 2.3;
else if (a[i].getdatabasescore() >= 68 && a[i].getdatabasescore() <= 71.9)
t4 = 2.0;
else if (a[i].getdatabasescore() >= 66 && a[i].getdatabasescore() <= 67.9)
t4 = 1.7;
else if (a[i].getdatabasescore() >= 64 && a[i].getdatabasescore() <= 65.9)
t4 = 1.5;
else if (a[i].getdatabasescore() >= 60 && a[i].getdatabasescore() <= 63.9)
t4 = 1.0;
else
t4 = 0;
if (a[i].getnetworkscore() >= 90)
t5 = 4.0;
else if (a[i].getnetworkscore() >= 85 && a[i].getnetworkscore() <= 89.9)
t5 = 3.7;
else if (a[i].getnetworkscore() >= 82 && a[i].getnetworkscore() <= 84.9)
t5 = 3.3;
else if (a[i].getnetworkscore() >= 78 && a[i].getnetworkscore() <= 81.9)
t5 = 3.0;
else if (a[i].getnetworkscore() >= 75 && a[i].getnetworkscore() <= 77.9)
t5 = 2.7;
else if (a[i].getnetworkscore() >= 72 && a[i].getnetworkscore() <= 74.9)
t5 = 2.3;
else if (a[i].getnetworkscore() >= 68 & a[i].getnetworkscore() <= 71.9)
t5 = 2.0;
else if (a[i].getnetworkscore() >= 66 && a[i].getnetworkscore() <= 67.9)
t5 = 1.7;
else if (a[i].getnetworkscore() >= 64 && a[i].getnetworkscore() <= 65.9)
t5 = 1.5;
else if (a[i].getnetworkscore() >= 60 && a[i].getnetworkscore() <= 63.9)
t5 = 1.0;
else
t5 = 0;
double tt, ttt;
tt = (t1 * 4 + t2 * 3 + t3 * 4 + t4 * 3 + t5 * 2) / 16;
ttt = (double) Math.round(tt * 100) / 100;
System.out.println("***********************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统2019版");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************");
System.out.println(" 学生学号:" + a[i].getstunumber());
System.out.println(" 学生姓名:" + a[i].getname());
System.out.println(" 高等数学绩点:" + t1);
System.out.println(" 高等数学绩点:" + t2);
System.out.println(" 计算机网络绩点:" + t3);
System.out.println(" 数据库绩点:" + t4);
System.out.println(" 软件工程绩点:" + t5);
System.out.println(" 你的平均学分绩点:" + ttt);
if (tt >= 2)
System.out.println(" 你的学分绩点达到毕业水平");
else
System.out.println(" 你的学分绩点没有达到毕业水平");
System.out.println("***********************************************");
}
String n6;
n6 = sc.next();
if (n6.equals("N")) {
ll = true;
} else
break;
}
}
public static void quit() {
System.out.println("***********************************************************");
System.out.println("谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 2019 版"); System.out.println("***********************************************************");
}
public static void main(String[] args) {
xiang();
int p = 0;
while (p != 4) {
System.out.println("***********************************************************");
System.out.println("石家庄铁道大学软件工程系");
System.out.println("学生学籍管理系统 2019 版");
System.out.println("***********************************************************");
System.out.println("1、 学生考试成绩录入");
System.out.println("2、 学生考试成绩修改");
System.out.println("3、 计算学生成绩绩点");
System.out.println("4、退出学籍管理系统");
System.out.println("***********************************************************");
p = scan.nextInt();
switch (p) {
case 1:
enter();
break;
case 2:
updata();
break;
case 3:
count();
break;
case 4:
quit();
break;
default:
System.out.println("输入错误请重新输入!");
}
}
}
}
JAVA语言课堂测试01源代码(学生成绩管理系统)的更多相关文章
- JAVA语言课堂测试源代码及使用截图
1源代码 第一部分 package 开学测试.java;class ScoreInformation {String stunumber;String name;double mathematicss ...
- C语言练手自己编写学生成绩管理系统
#include<stdio.h> #include<stdlib.h> /*定义学生结构体*/ struct Student { ]; ]; float Mark1; flo ...
- 使用Java模拟一个简单的Dos学生成绩管理系统:
使用Java模拟学生成绩管理系统... ------------------- 学生成绩管理系统:需要实现的功能:1.录入学生的姓名和成绩2.显示列表.列表中包括学生姓名与成绩3.显示最高分.最低分的 ...
- 2019.9.30极限测试 04.JAVA语言课堂测试试卷-极限测试
题目存储在上传的文件当中. 代码实现 Subway 类: package ClassroomTest; public class Subway { private String railway; pr ...
- 第一次写C语言小程序,可以初步理解学生成绩管理系统的概念
1 成绩管理系统概述 1.1 管理信息系统的概念 管理信息系统(Management Information Systems,简称MIS),是一个不断发展的新型学科,MIS的定义随着科技的进步也在 ...
- 学生成绩管理系统-JAVA语言测试
首先右键新建一个工程project 选择Java Project,单击next下一步 project命名为“学生成绩管理系统”,点击finish继续 右键src文件夹新建Package包,取名为te ...
- Java开学测试-学生成绩管理系统
题目: 1.定义 ScoreInformation 类,其中包括七个私有变量(stunumber, name, mathematicsscore, englishiscore,networkscore ...
- java学生成绩管理系统
信1805-1 20183590 田庆辉 石家庄铁道大学 2019 年秋季 ...
- java简单学生成绩管理系统
题目要求: 一. 数据结构要求:(5 分) 1.定义 ScoreInformation 类,其中包括七个私有变量(stunumber, name, mathematicsscore, englishi ...
随机推荐
- [Cypress] Find Unstubbed Cypress Requests with Force 404
Requests that aren't stubbed will hit our real backend. To ensure we've stubbed all our routes, we c ...
- has(expr|ele)保留包含特定后代的元素,去掉那些不含有指定后代的元素。
has(expr|ele) 概述 保留包含特定后代的元素,去掉那些不含有指定后代的元素.大理石平台等级 .has()方法将会从给定的jQuery对象中重新创建一组匹配的对象.提供的选择器会一一测试原先 ...
- 【poj1182】食物链--并查集扩展域
Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 109341 Accepted: 33191 Description 动物 ...
- 2016多校7.14 Warmup 题解
先讲1007,是一个数位dp,询问一个区间内,各位数的和是一个素数的数字的个数.其实我并不会数位dp,这题直接套用了上次多校lyf队长的dp代码,改了点返回参数没想到直接AC了.代码如下: #incl ...
- 使用聚集索引和非聚集索引对MySQL分页查询的优化
内容摘录来源:MSSQL123 ,lujun9972.github.io/blog/2018/03/13/如何编写bash-completion-script/ 一.先公布下结论: 1.如果分页排序字 ...
- dubbo服务层面上的负载均衡和高可用
dubbo上的服务层可以做集群,来达到负载均衡和高可用,很简单,只需要在不同的服务器节点上向同一个zk(内网环境)注册相同的服务 注意就是,消费者不能在同一个zk做这种集群操作的 转载请注明博客出处: ...
- Java-AQS源码详解(细节很多!)
ReentrantLock调用lock()时时序图: addWaiter方法: enq方法:自旋 它维护了一个volatile int state(代表共享资源)和一个FIFO线程等待队列(多线程争用 ...
- Linux设备驱动程序 之 ioctl
ioctl 除了读取和写入设备之外,大部分驱动程序还需要另外一种能力,即通过设备驱动程序执行各种类型的硬件控制,通常这种需求使用ioctl方法支持,该方法实现了同名的系统调用: 在用户空间,ioctl ...
- VS2008 Qt Designer 中自定义信号槽
一.Qt Designer自定义槽函数 发现:在VS2008 +Qt4.7 中打开ui文件,所用的英文QT Designer工具,没有转到槽函数的功能,不如QtCreator自带的QtDesigne ...
- ios-Realm数据库的使用
[集成 Realm] 本 Demo 使用 OC 创建,所以先进入 Realm 官网 (我记得之前都是有官方中文教程的,但现在最新版没有中文了),到 Objective-C -> Getting ...