这是我的代码:
//test file
#include <iostream>
#include "stat.h"
#include "frequency.h"
using namespace std;
int main(){
cout << "helo"<< endl;
return 0;
}
当我尝试编译时,我得到:
test.cc:7: error: expected unqualified-id before "using"
test.cc:7: error: expected `,' or `;' before "using"
知道这里发生了什么吗?
最佳答案
你可能错过了;在头文件的末尾。
它应该是这样的:
class frequency {
...
};
关于c++ - 编译器错误 : 'expected unqualified-id before "using ''' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9696352/