Why? Because you're too damn lazy to post the linenumbers and file here?
I'm not downloading anything random from the internet, I like my PC lean and clean.
First it's not a project , just a tiny program consists of a set of classes ..
Second the program is quite complex and by writing the line number , that kind will not solve the problem , so i am giving you a chance to look at my code in order to analayze the error reasons and Source ..
it's a syntax error, the compiler will tell you what line it's having a problem with. Take that line of code, or the procedure that line of code is in, wrap it in [ code=cpp] [ /code] tags (without the spaces of course) and place it here.
"it's not a project , just a tiny program consists of a set of classes .."
"the program is quite complex"
you're being inconsistent. If you want help you will need to format your question in a way that people can easily look at your code and detect the error with as little hassle as possible.
so i am giving you a chance to look at my code in order to analayze the error reasons and Source ..
Lucky me! That you choose me of all people to "have a change to look at your code"
And here I was thinking that you needed help :) How foolish of me! I should have known that your 'skilz' are far superior to my own and I apologize for being so impolite.
Now if you'll excuse me, I'll download and print your code and go and meditate for a few days on top of it, to see if I can reach the same level of enlightenment as you have.
hey thanks, I wondered how others did it.
Also, flame wars might be appropriate considering your avatar.
Also, back to the original problem in the thread,
Not everybody is going to have the same compiler as you, I for one do not use Microsoft Visual C++ -- I tried compiling main.cpp using gcc, and it compiled fine. Upon further inspection of the code, I found that it had a main() function which only returned 0, and included iostream... So I don't know how to help you, or where your error is.
you can't declare methods of a class without a return type. You seem to think that "setDate" doesn't have to return a value. Ok, I can respect that. How 'bout you make it return a void type. Only ctors and dtors can skip return values (and I think must)
int d; // Day
int m; // Month
int y; // Year
setDate(int d, int m, int y); // Really?
void setDate(int d, int m, int y); // Better.
Do this for all of your messed up lines, and the original error you found ( missing ; before * .. ) will go away when you fix all the other errors. Don't count on it happening right away either.... you have a circle jerk of classes that all refer to each other.... barrower refers to copy inside of it's members, while copy refers to barrower in it's class definition... which came first the chicken or the egg?
Redesign your entire project, using some kind of UML or Flowchart, and try again.