Yupiii...........!!! Thanks Cincai.... It runs properly now. Now, I feel free to do my further practice with GNU C++. I bought GNU C++ for Linux (by Tom Swan). I am goint to learn from this book. Your help in my first step is very usefull. I have modified my code. I moved the classes into header file, do "include "bsamba.h" (and also for the other header file) and compile it again with "g++ -I ./ liss.cpp". and everything as expected. Thanks Cincai.... Thank you. --- Cincai Patron <cincaipatron@gmx.net> wrote:
On Thursday 30 September 2004 21:16, Prabu Subroto wrote:
I am still confused. Sorry I am a really beginner in GNU C++. 1. May I make 2 classes in one file?
Yes.
2. header is somewhat like this : "#include <iostream.h>.
In C++, drop .h for system headers -- it's the newer standard. You can still append .h, but gcc will warn you.
I am confused how should the header file of my "menu" class for registering "samba" class in the "menu" class?
Could you give me an example of the header file of my "menu" class please....?
Class "menu" needs "samba", but you define "samba" after "menu". One way is as Paul suggested: class samba {...}; class menu {...};
The other whould be to declare samba first: class samba; class menu {...}; class samba {...};
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com