It's not so early anymore, and I'm getting very frustrated due to what time it is.
Please read CAREFULLY what I am writing so I don't have to re-post this again, and again.
I first declared a class, in C++, in another header. The code is as follows:
(This is an INCOMPLETE snippet of my code)
class game{
struct color{int r,g,b,n;};
struct screen_color{color c;};
bool collision (int X, int Y, int x, int y);
int Time;
};
Then, I decided I wanted to change my class name, but I had used the class name (thus the functions including) in my main.cpp file.
I used Code::Block's "replace" tool to replace all instances of "game" in BOTH my header AND my main (I re-did this twice..).
I then tried to execute my code, but Code::Blocks returned MANY instances of this error:
Expected primary-expression before ‘.’ token
What this means - which you all know - is that it doesn't interpret the class itself which was initialized before (
game.collision(...)).
Now. What I did was I changed the class name
ONLY!, leaving ALL other instances of the old class name be.
The new class name is game1...
Now, it only returns ONE single error.. That is right, only ONE error... despite having many instances of undeclared class names being used.
This error is:
expected initializer before '.' token
Now, I ask you, forum, what in the HECK is wrong here? Is it me who's too tired to see the problems in my code? I can't understand why Code::Blocks works the way it does.
It should at the VERY least return multiple errors.. not just ONE.