struct PointStruct
{
int pointx = 1;
int pointy = 2;
public PointStruct(int x, int y)
{
this.pointx = x;
this.pointy = y;
}
}
public class test
{
PointStruct s = new PointStruct();
}
struct是值类型,用来封装一组数据和一些简单处理数据的方法
posted on
2016-03-17 10:54jianiu
阅读(252)
评论(0)
编辑收藏举报