home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16013 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.3 KB  |  97 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!Germany.EU.net!nixpbe!news.sni.de!snibln!berta!root
  3. From: root@berta.bln.sni.de (0000-Admin(0000))
  4. Subject: Re: c++ & c+++
  5. Message-ID: <kurs0.721386635@berta>
  6. Sender: news@snibln.sni.de (Network News)
  7. Organization: Siemens Nixdorf Informationssysteme AG, Berlin, Germany
  8. References: <1992Nov8.222637.5773@nmsu.edu>
  9. Date: Tue, 10 Nov 1992 09:10:35 GMT
  10. Lines: 85
  11.  
  12. willittl@spock.NMSU.Edu (William  Little) writes:
  13.  
  14.  
  15. >Okay, a couple quick questions.
  16.  
  17. >My employer recently bought Borland c++ compiler for
  18. >windows and told me he bought some new C+++.  I personally
  19. >have never heard of C+++.  Has anybody else?  Could he
  20. >be confused about the Borland C++ 3 compiler for windows?
  21.  
  22. >Now, on to my c++ questions.
  23.  
  24. >In the past week I bought a couple books on c++ so I can 
  25. >finally figure out what the difference is.  WOW!  I have
  26. >been doing things the hard way!  But, I guess I will find
  27. >out what it is worth when I start developing a windows
  28. >application... ick.
  29.  
  30. >The books I bought were for beginners, and didn't tell me 
  31. >much.  I went through them in a couple hours, and came up
  32. >with some questions in areas they didn't cover.
  33.  
  34. >They made references to the functions and variables in 
  35. >classes two different ways.
  36.  
  37. >first:
  38.  
  39. >class.variable
  40. >class.function()
  41.  
  42. >That was expected...
  43.  
  44. >Then, they did this:
  45.  
  46. >class::variable
  47. >class::function()
  48.  
  49. >Also, when they created a class such as:
  50.  
  51.  
  52.  
  53. >class test   (simplistic flow - no flames please)
  54. >  {
  55. >  define variables....
  56.  
  57. >  function1(){
  58. >     code;
  59. >     }
  60.  
  61. >  function2(){
  62. >     code;
  63. >     }
  64.  
  65. >  function3();
  66. >  }   // end class
  67.  
  68. >test::function3() {
  69. >   code;
  70. >   }
  71.  
  72. >main() { did the goodies }
  73.  
  74. >They created function3 inside the test class, yet defined
  75. >the code for it out of the class definition, and used those
  76. >nasty ::'s that confuse me so well.
  77.  
  78. >What do the ::'s do??
  79.  
  80. >The books I bought used them all over the place,  but never
  81. >told me what they did.
  82.  
  83. >Please help..  :)
  84.  
  85. >Joseph Good
  86. >(The sole user of a good friends donated unix account)
  87.  
  88. >willittl@nmsu.edu
  89.  
  90. It's so trivial, maybe you should read your books more intensive !!!
  91. :: is named the scope Resolution Operator, and one Application, beneath others,
  92. is the definition of Memberfunctions out of the class defintion.
  93.  
  94. Lars Eisenblatt
  95. Usually
  96. lars@pfm.rmt.sub.org
  97.