C++: too few arguments in function call -


i have problem in code. when call functions. compiler show error:

"too few arguments in function call" ............................................................

bool check_matrix(int x, int y){     if (x<rows || y<columns)         return true;     return false;      }  bool compute_duplicate(int x, int y, int array[], int array_length){     (int i=0; i< array_length; i++)     {         if(array[i]==compute_address(x,y))             return false;     }      return true;     } ////////////////////////////////////  (int i=0; i<array_length; i++){     if ((check_matrix(x,(y+1))==true) && compute_duplicate((x,(y+1), array, array_length)==false)) {         array[i]= compute_address(x,(y+1));         y++;         d++;         i++;     }      if ((check_matrix((x+1),y)==true) && compute_duplicate((x+1),y, array, array_length)==false)) {         array[i]=compute_address((x+1),y);         x++;         d++;         i++;     }     array_length=d; } 

the following function call has misplaced bracket

compute_duplicate((x,(y+1), array, array_length)==false) 

it should

(compute_duplicate(x,(y+1), array, array_length)==false) 

the same error exists in 2 places within loop.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -