My C++ code seems to have a problem with my opening and closing of brackets when I run it.
The line in question is shown below:
if ( (zpos[pmtID]<(zmin+(k*zscale))) || (zpos[pmtID]>(zmin+((k+width)*zscale))) ) {
continue
}
I have used the bracket highlighting feature in gedit and all the brackets seem to match but I receive this error message:
Error: Cannot find matching ')' for '(' on line 103.
* Interpreter error recovered *
This is the first time I have used the or operator so I am wondering if I used it correctly.
note: This is being compiled and run in ROOT (uses the CINT interpreter for C++)
Thanks,
Steve
Aucun commentaire:
Enregistrer un commentaire