作业帮 > 综合 > 作业

c++里怎么会出现term does not evaluate to a function?

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/04/27 17:46:51
c++里怎么会出现term does not evaluate to a function?
我是一个c++初学者,我写了下面的代码,然后运行时怎么会出现error C2064:term does not evaluate to a function?下面是我写的,到底是哪里错了?
#include "stdafx.h"
#include
int main(int argc,char* argv[])
{ int a;
int b;
int max;
cout
c++里怎么会出现term does not evaluate to a function?
//#include
#include
using namespace std;
int max(int, int);//添加这行 ,声明下面将有这个函数
int main(int argc, char* argv[])
{ int a;
int b;
//int max;这句是错误的,max应该是个函数名,不是变量
cout