这些语法错误意味着什么?

时间:2018-06-11 21:44:25

标签: visual-studio

我的代码如下:

if (direction == 0)
        {
            for ((int)params[0].as_float) >= 0 && (int)params[0].as_float)<=31) //go through start parameter from 0:31 
            {
                for(int temp_int = 0; temp_int < (int)params[1].as_float;temp_int++)
                {
                    (int)params[1].as_float = (int)params[1].as_float - (int)params[0].as_float; //subtracting start from size(1:32)

                srand(time(NULL)); //generate random numbers(raw data)
                tmp_buffer = rand(); 

                for(temp_int= 0;temp_int< (int)params[1].as_float;temp_int++)//implement raw to engineering conversion
                {   
                temp_uint = (tmp_buffer >> ((int)params[0].as_float + temp_int)) & 1; //shifts to the 0th position and mask with 1 to get the data individually 
                temp_uint2 |= temp_uint << ((int)params[0].as_float + (int)params[1].as_float - temp_int- 1); 
                 *eng_buffer = (double)temp_uint2;               
                }

                temp_uint2 = tmp_buffer & mask; //only taking the label
                temp_uint3 = tmp_buffer | (!mask); //everything except the label
            }

        } 
    }

我收到以下错误:

  

语法错误:缺少';'之前')'

我该怎么办?

0 个答案:

没有答案