简体   繁体   中英

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. What should I use?

you should add a reference to System.Drawing.dll and then add 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();
        }

    }
}

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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