Expected constructor destructor or type conversion before token lỗi năm 2024
error: expected constructor, destructor, or type conversion...I have some C++ code I am working on that receives the following compilation error: Somebody please help, because I have never seen this error before and can't see what I am doing wrong.
Don't just read the error messages, inspect them. You had an extra } token that ended main before return 0; This is why I use this style: Here's your code. Also, I think we shouldn't use *.h lib files, but instead c* as in cmath instead of math.h
thank you, I just needed a fresh pair of eyes to look at it. I will take your suggestion into account. |