I get an error in Visual C ++ that gives me a very difficult time.
Error: error c2143: syntax error: missing ')' before 'constant'
My line of code:
coefficient[i] = (1 - (2 * depth)) + ((t - floor( t + 0.5 ) + 1 ) 2 * depth);
I have #include at the beginning of the file that the floor (double) function should define.
A bit more explanation of the variables.
double depth is a member variable of the class in which this string can be found.
int i is the index value. double t is an extra value.
What they do is really inconsequential, but I wanted to clarify that all three are already defined as variables of basic types.
I passed the test and confirmed that all parentheses match. I don’t understand what the “constant” referenced by the compiler is. Any ideas?
source
share