多谢steedhorse(晨星)帮我up!
最近学JAVA,单位工作要用,不爽! 还是C++爽!

解决方案 »

  1.   

    操作系统把设备当作文件一样来管理(虚拟的),com2是设备端口应该与通讯有关,用猫上网的时候在配置调制解调器时应该见过com1,com2吧。
    这种名字就像JAVA里的保留字一样,你总不能生命一个变量叫做int吧?一个道理
      

  2.   

    设备保留名嘛,就像关键字一样不能用作文件名,还有如con.txt这种文件名都不可以
      

  3.   

    我在win2000server Dos窗口用 Com2  即弹出 打开方式 !! 
    "Click the program you want to use to open 'com2'; if the program is not in the list, click Other," 
     当保存com2(以为文件名)时弹出 "This file name is a reserved device name,
    Please choose another name" 在这里很明了了 !!