saber1043511996
2017-01-27 09:50|error: expected type-specifier before '(' token|
初学者的问题,在看视频的时候老师是可以运行的,但我用vs和codeblock都不能运行,代码我是照着打下来的,应该没错,那么这个是编译器问题还是我真的打错了....#include
using namespace std;
#include"string"
#include
#include
#include"set"
#include
#include"functional"
//函数对象
template
class show
{
public:
void operator(T &t)
{
cout << t << " ";
}
private:
};
void main()
{
cout << "hello wordl" << endl;
system("pause");
return 0;
}
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- Dev C++嵌入__asm { } 报错
- c++
- 2个回答
- APC(主干)使用PHP 5.4在CentOS上安装
- centos
- php
- compilation
- 1个回答
- |error: expected type-specifier before '(' token|
- 编译器
- visual studio
- 1个回答