Basically, I'm trying to define a structure type and I'm getting a syntax error on the third to last line.
Also, on the same line I'm getting,Code:struct term { char sign; char coef; char xvar; char yvar; char oparen; term pterm[5]; //error here char cparen; };
I read in the tutorial on structures that the syntax for defining a structure type is different in C than C++, but when I comment out that line, it compiles fine. And, I know you can use a variable whose type is the structure you are defining, because it was done in the article on the Huffman compression technique.[Warning] no semicolon at the end of struct or union
Any thoughts?
BTW, I'm using the DevC++ compiler.