TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: NEIL HELLER
date: 1998-04-30 21:28:00
subject: OPINIONS?

Given the following code snippet:
char     *   m_recid = "for whom the bell tolls";
CString  *   abc = m_recid;
if (*m_recid == NULL) {
I'd be interested to hear others' opinions.  One person said this was
the worst example of coding he'd ever seen (I didn't say it and I
didn't write it).
BTW, this brings up a couple points of interest to me.  Is abc above a
pointer to a pointer to char (in addition to being a pointer to a
CString object)?  Does the following code:
char   *   abc[20];
automatically instantiate a pointer to a pointer to the first element
of abc?
 * KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.