[英]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.