小白求教

akihiiiii 2019-08-06 03:30:11
对x,y,z分别按照要求赋值这个不太会,求指教
...全文
110 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
射手座cl 2019-08-07
  • 打赏
  • 举报
回复
[quote=引用 4 楼 akihiiiii 的回复:] [quote=引用 2 楼 射手座cl的回复:] 这是c#代码,c++我也不会
akihiiiii 2019-08-06
  • 打赏
  • 举报
回复
引用 2 楼 射手座cl的回复:
class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入n:");
            int n = Convert.ToInt32(Console.ReadLine());
            List<Point> list = new List<Point>();
            for (int i = 0; i < n; i++)
            {
                list.Add(new Point(i,i+1,i+2));
            }
        }
    }
    public class Point
    {
        public int x { get; set; }

        public int y { get; set; }

        public int z { get; set; }


        public Point(int x, int y,int z)
        {
            this.x = x;
            this.y = y;
            this.z = z;

        }
    }
厉害 不过list我还不会 刚学到类
akihiiiii 2019-08-06
  • 打赏
  • 举报
回复
引用 1 楼 二月十六的回复:
用什么实现?不能用sql吧
用c+吧吧 其他的我没学
射手座cl 2019-08-06
  • 打赏
  • 举报
回复
class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入n:");
            int n = Convert.ToInt32(Console.ReadLine());
            List<Point> list = new List<Point>();
            for (int i = 0; i < n; i++)
            {
                list.Add(new Point(i,i+1,i+2));
            }
        }
    }
    public class Point
    {
        public int x { get; set; }

        public int y { get; set; }

        public int z { get; set; }


        public Point(int x, int y,int z)
        {
            this.x = x;
            this.y = y;
            this.z = z;

        }
    }
二月十六 2019-08-06
  • 打赏
  • 举报
回复
用什么实现?不能用sql吧

6,129

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 新技术前沿
社区管理员
  • 新技术前沿社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧