term does not evaluate to a function taking 4 arguments
我照书上打的
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
//二维字符数组的声明和初始化,未被初始化的元素初始值为0:
static char diamond[][5]=((' ',' ','*'),(' ','*',' ','*'),('*',' ',' ',' ','*')
(' ','*',' ','*'),(' ',' ','*'));
int i,j;
for(i=0;i<5;i++)
{
for(j=0;j<5 && diamond[i][j]!=0;j++)
cout<<diamond[i][j];
cout<<endl;
}
}
为什么会出现 term does not evaluate to a function taking 4 arguments
这是什么意思啊?