问题:
structstudent
{
publicintno;
publicstringname;
publicstringsex;
publicdoublescore;
}
classProgram
{
staticvoidMain(string[]args)
{
studentstu;
stu.no=10003;
stu.name="小小";
stu.sex="女";
stu.score=89.5;
Console.WriteLine("学生的学号是{0},名字叫{1},性别是{2},程序设计的成绩是{3}",stu.no,stu.name,stu.sex,stu.score);
相关内容