Message-ID: <36DC0B86.843FC788@xyz.net> From: =?iso-8859-1?Q?Bj=F8rn?= Hansen X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: pointer question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 NNTP-Posting-Host: 207.14.89.137 X-Trace: news7.ispnews.com 920422974 207.14.89.137 (Tue, 02 Mar 1999 20:02:54 EDT) NNTP-Posting-Date: Tue, 02 Mar 1999 20:02:54 EDT Date: Tue, 02 Mar 1999 16:02:15 +0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com If I have a global pointer to a Ship class I made declared like this: Ship *scouts=NULL and then in my main function I do this: scouts=new Ship why can't I do this in one of my other functions? Ship *selected_ship; selected_ship=scouts[0];