Path: utzoo!news-server.csri.toronto.edu!bonnie.concordia.ca!s3!robert From: robert@ireq.hydro.qc.ca (R.Meunier 8516) Newsgroups: comp.lang.c++ Subject: easy question Message-ID: <5914@s3.ireq.hydro.qc.ca> Date: 8 Mar 91 16:36:48 GMT Sender: root@s3.ireq.hydro.qc.ca Reply-To: robert@ireq.hydro.qc.ca () Organization: IREQ, Hydro-Quebec, QC, Canada Lines: 55 I have 2 easy question on c++ ====================================================================== 1) How can i declare two object that point to each other? class A { private: B *b; public: ... } class B { private: A *a; public: ... } Of course, the compiler give an error on this because when compiling A, B is undefined. ====================================================================== 2) How do i declare a parameter that i do not use to avoid a warning from the compiler void func(int a, int b) { int c; c = a; } b is not use and i do not wan't to use it but the compiler gives me a warning. -- Robert Meunier Institut de Recherche d'Hydro-Quebec Ingenieur 1800 Montee Ste-Julie, Varennes Internet: robert@ireq.hydro.qc.ca Qc, Canada, J3X 1S1 maintainer: BASIC mailing list request to basic-request@ireq.hydro.qc.ca