Hey I'm having a very, very minor syntax error in one of my class functions that I cannot detect. Here's a sample code.
OneArray is an array that is already defined in the public section of the class cclass. I'm using Dev C++ 4.9.9.0 and it says OneArray is undeclared, first use in the function. I don't know why this is happening becuase I have used OneArray numerous times in two other class functions, but now it seems something is wrong with my syntax, so could someone lend me a hand please?Code:void cclass::cfunction() { if (var1 != OneArray [x] && var1 < OneArray [x]) x + 1; cfunction(); else if (var1 != OneArray [x] && var1 > OneArray [x]) x - 1; cfunction(); }