请大神把C语言转化成C++ 要求用cin输入,cont输出 谢谢! #include<stdio.h> str

2025-05-10 04:20:48
推荐回答(1个)
回答1:

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

==>
cin >> st[i].sno

其他的同例自己看着改,