Article View: alt.comp.lang.learn.c-c++
Article #545Re: Will I encounter problems with this?
From: Jacques Labuschagne
Date: Tue, 08 Oct 2002 23:08
Date: Tue, 08 Oct 2002 23:08
15 lines
1841 bytes
1841 bytes
Mike K wrote:
> MyClass(int x, int y) {
> Reset();
> _x = x; _y = y;
No member named _x or _y. You called them plain old x and y.
I'd recommend using x_ and y_, as names starting with an underscore
are generally reserved for use by the implementation.
--
"Come to think of it, there are already a million monkeys
on a million typewriters, and Usenet is NOTHING like
Shakespeare."
- Blair Houghton
Technical Details
Message-ID:
<owJo9.5131$Os6.704244@news.xtra.co.nz>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mailReferences:
<6iJo9.212959$8b1.66337@news01.bloor.is.net.cable.rogers.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114592,61800715a4dea40c X-Google-Attributes: gid114592,public X-Google-Thread: 10f40d,61800715a4dea40c X-Google-Attributes: gid10f40d,public X-Google-Thread: 109fba,61800715a4dea40c X-Google-Attributes: gid109fba,public X-Google-Thread: 102541,61800715a4dea40c X-Google-Attributes: gid102541,public X-Google-ArrivalTime: 2002-10-08 16:04:53 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mail From: Jacques Labuschagne <hardwired@xtra.co.nz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cppbuilder,borland.public.cppbuilder.students,comp.lang.c++ Subject: Re: Will I encounter problems with this? References: <6iJo9.212959$8b1.66337@news01.bloor.is.net.cable.rogers.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 16 Message-ID: <owJo9.5131$Os6.704244@news.xtra.co.nz> Date: Wed, 09 Oct 2002 12:08:27 +1300 NNTP-Posting-Host: 210.86.34.236 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1034118292 210.86.34.236 (Wed, 09 Oct 2002 12:04:52 NZDT) NNTP-Posting-Date: Wed, 09 Oct 2002 12:04:52 NZDT Organization: Xtra