c# point偏移_C#中的Point类

我对C#很陌生,我正在努力做一些事,但没有太大的成功.我正在尝试使用Point类(带坐标的那个).

这是代码:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace app2{

class Program{

static void Main(string[] args){

Point p1 = new Point();

p1.X = 7;

p1.Y = 6;

Console.WriteLine(p1.X);

Console.WriteLine(p1.Y);

Console.ReadLine();

}

}

}

错误是:

The type or namespace Point could not be found

我一直在Java中以非常类似的方式使用这个类,我应该声明我自己的Point类/函数返回X和Y坐标吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值