Good day. The problem is what? - produces an error: "invalid operands of types 'double' and 'double (const char *) throw ()' to binary 'operator =='"
Here is a code snippet in which it gives an error:
double Opredel(){ int swapc= triangulat(); double opredel=mat[0][0]; for(int i=1;i<size;i++){ mat[i][i]= 0; opredel*=mat[i][i]; } if(swapc % 2 != 0 ){ opredel *=-1; } if(opredel == nan){ opredel = 0; } return opredel; } If it is not difficult, then explain why this error occurs, in order to avoid such mistakes in the future. Thank.
nanis a function and you forgot to add parentheses to call it. - VTTnanand what you are going to do with it. - VTTopredel == nanyou think that you can just take and writeopredel == nan? - AnT pm