f********f 发帖数: 475 | 1 第一次用Visual Studio .net 2005, 需要将一个算法程序从C变成C++. 其实就是很小
的改动, 原来是两个global的functions, 现在我将他们放到一个class里变成两个
static functins. 但是编译的时候告诉我
error C2061: syntax error : identifier 'class'
好象是不认识class这个identifier. 试了一下namespace, 也不认识, 怎么回事呢? 谢谢! | f********f 发帖数: 475 | 2 faint, I know it. The code file extension should be .cpp, cannot be .c
谢谢!
【在 f********f 的大作中提到】 : 第一次用Visual Studio .net 2005, 需要将一个算法程序从C变成C++. 其实就是很小 : 的改动, 原来是两个global的functions, 现在我将他们放到一个class里变成两个 : static functins. 但是编译的时候告诉我 : error C2061: syntax error : identifier 'class' : 好象是不认识class这个identifier. 试了一下namespace, 也不认识, 怎么回事呢? 谢谢!
|
|