“System”: 符号不能用在 using 声明中

shenhouwuren 2016-04-23 08:04:17
求各位大神指点一下,这样的错误怎么改正?

#include <stdlib.h>
#include <cmath>
using namespace std;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
...........
..........
...........




提示错误:
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(4): error C2873: “System”: 符号不能用在 using 声明中
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(5): error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(5): error C2873: “System”: 符号不能用在 using 声明中
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(5): error C2059: 语法错误:“.”
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(6): error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(6): error C2873: “System”: 符号不能用在 using 声明中
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(6): error C2059: 语法错误:“.”
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(7): error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(7): error C2873: “System”: 符号不能用在 using 声明中
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(7): error C2059: 语法错误:“.”
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(8): error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(8): error C2873: “System”: 符号不能用在 using 声明中
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(8): error C2059: 语法错误:“.”
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(9): error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>c:\users\administrator\documents\visual studio 2010\projects\txcl\txcl\3.cpp(9): error C2873: “System”: 符号不能用在 using 声明中
...全文
866 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
大鱼> 2016-04-24
  • 打赏
  • 举报
回复
不能,使用vs....
shenhouwuren 2016-04-24
  • 打赏
  • 举报
回复
C#代码能在Microsoft Visual c++上运行吗?(Opencv+C++)
shenhouwuren 2016-04-24
  • 打赏
  • 举报
回复
..............
大鱼> 2016-04-24
  • 打赏
  • 举报
回复
看来语言学多了会串的。难怪现在人说汉语的时候不时冒出几句英文。
encoderlee 2016-04-24
  • 打赏
  • 举报
回复 1
#include <stdlib.h> #include <cmath> using namespace std; 是C++代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; 是C#代码 你写的是什么程序
dustpg 2016-04-23
  • 打赏
  • 举报
回复
恭喜lz创建了C#++

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧