home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18292 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  616 b 

  1. Path: sparky!uunet!spool.mu.edu!think.com!ames!sgi!fido!paladin!davep
  2. From: davep@paladin.corp.sgi.com (David Packer)
  3. Newsgroups: comp.lang.c++
  4. Subject: Testing a pointer??
  5. Date: 22 Dec 1992 00:57:50 GMT
  6. Organization: Silicon Graphics Inc., Mountain View, CA
  7. Lines: 17
  8. Message-ID: <1h5p6eINNdva@fido.asd.sgi.com>
  9. NNTP-Posting-Host: paladin.corp.sgi.com
  10.  
  11.  
  12. Hey,
  13.  
  14. If I have a linked-list, called llist...and I want to test it
  15. to see if it exists. i.e. I only want to create it if needed..
  16.  
  17. How do I test to see if it exists..
  18.  
  19. i.e.
  20.  
  21. if(!llist) { objList = new llist; }
  22.  
  23. this doesn't seem to work for me??
  24.  
  25. thanx 
  26.  
  27. Dave
  28.