"error C2064: term does not evaluate to a function taking 1 arguments"

Hello
I just wrote this very simple program but i got the error "error C2064: term does not evaluate to a function taking 1 arguments", what in my program is wrong?
here it is:

//***********************************************************************
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
double x[19],tn;
for(i=0;i<19;i++)
{
x(i)=1;
//tn=x(i);
}
return 0;
}



and here is the error (when i double click on the error given below pointer goes to line 10,x(i)=1;)

------ Build started: Project: yj, Configuration: Debug Win32 ------
Compiling...
3.cpp
f:\my project\yj\yj\3.cpp(9) : error C2064: term does not evaluate to a function taking 1 arguments
Build log was saved at "file://f:\my project\yj\yj\Debug\BuildLog.htm"
yj - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




thanks in advance
Last edited on
problem is found!it must be x[i] not x(i).
Topic archived. No new replies allowed.