简体   繁体   English

控制台应用程序中有关点的信息存储在哪里?

[英]Where to store information about point in console application?

I need to create a struct storing four points. 我需要创建一个存储四个点的结构。 I wanted to create a Point variable, but it looks I can't use System.Drawing in console application. 我想创建一个Point变量,但看起来我无法在控制台应用程序中使用System.Drawing What should I use? 我应该使用什么?

you should add a reference to System.Drawing.dll and then add using System.Drawing; 您应该添加对System.Drawing.dll的引用,然后using System.Drawing;添加using System.Drawing;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;  

namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
          Point point =  new Point();
        }

    }
}

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM