import java.util.Scanner;
//定义主类
public class TestStudent {
public static void main (String[] args) {
Student Stu = new Student();
Stu.Input();
}
}
//定义类
class Student {
String[] name;
char[] sex;
float[] math;
float[] daishu;
float[] C;
float[] object;
int n;
public void Input () {
Scanner sc = new Scanner(System.in);
System.out.println("请输入录入学生数量:");
n = sc.nextInt();
for(int i = 1;i<=n;i++) {
System.out.println("请输入第"+i+"组数据");
System.out.println("请输入第"+i+"组姓名");
name[i] = sc.nextLine();
System.out.println("请输入第"+i+"组性别");
sex[i] = sc.next().charAt(0);
System.out.println("请输入第"+i+"组高数成绩");
math[i] = sc.nextFloat();
System.out.println("请输入第"+i+"组线性代数成绩");
daishu[i] = sc.nextFloat();
System.out.println("请输入第"+i+"组C语言成绩");
C[i] = sc.nextFloat();
System.out.println("请输入第"+i+"组面向对象成绩");
object[i] = sc.nextFloat();
}
}
}