//求助各位高手,Vector属于哪个类库里的?using为什么会命名空间报错?
using System;
using System.Collections.Generic;
using System.Text;namespace CSDEMO2
{
    class Program
    {
        static void Main(string[] args)
        {
            Vector x, y;
            x = new Vector();
            x.value = 30;
            y = x;
            Console.WriteLine(y.Value);
            y.Value = 50;
            Console.WriteLine(x.Value);
            Console.ReadLine;
        }
    }
}

解决方案 »

  1.   

    Vector 结构 System.Windows.Vector
      

  2.   

    另外,C#中的Vector不是这么用的吧?怪怪的。
      

  3.   

    错误 1 命名空间“System”中不存在类型或命名空间名称“Windows”(是缺少程序集引用吗?) C:\CSDEMO\CSDEMO2\CSDEMO2\Program.cs 4 14 CSDEMO2
    System下没有这个类嘛,《c#高级编程》的例子
      

  4.   

    .Net Framework 3.0 以上, System.Windows.Vector
      

  5.   

    http://bytes.com/topic/c-sharp/answers/277582-c-equivalent-c-std-vector 
    看这个