3D 摇奖机/ConsoleApp5/Program.cs

(完整代码) 804B

using System;

namespace ConsoleApp5
{

    //1,定义结构体
    public struct Student {
        public string name; //姓名
        public string sex;  //性别
        public int age;  //年龄
        public double height; //身高
    }


    class Program
    {
        static void Main(string[] args)
        {
            //声明结构体变量
            Student stu;

            //赋值
            stu.name = "张飞";
            stu.age = 30;
            stu.sex = "男";
            stu.height = 175;

            //输出
            Console.WriteLine(stu.name+","+stu.age+","+stu.sex+","+stu.height);



            Student stu2;
            stu2.name = "刘备";
            stu2.age = 32;
            stu2.sex = "男";
            stu2.height = 180;





        }

    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。