这是有多难,printf转cin,printf("请输入第%d个学生的学号:",i+1);==>cout << "请输入第%d个学生的学号:"<scanf("%s",st[i].sno);==>cin >> st[i].sno其他的同例自己看着改,