One of the cpp file I tried to compile gave me that error. The cpp file I am working on is literally a copy of 2 other .cpp files, except this handles different values and have different calculation. I don't understand why the other files can compile, but not this one.
Assuming that "" is actually a cryllic letter ï, but I do not have such character in my code.
The exact error message is:
"TelephoneBill.cpp", line 1: Error: A declaration was expected instead of "". "TelephoneBill.cpp"."TelephoneBill.cpp", line 1: Error: "," expected instead of ""TelephoneBill.h"".
I have cut out the unnecessary parts, but the code is:
#include "TelephoneBill.h" //line 1
istream& operator>>(istream& in, TelephoneBill* b)
{
//...
}
//...
Anyone has an idea about what is going on here?
Thanks in advance!