home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!Germany.EU.net!nixpbe!news.sni.de!snibln!berta!root
- From: root@berta.bln.sni.de (0000-Admin(0000))
- Subject: Re: c++ & c+++
- Message-ID: <kurs0.721386635@berta>
- Sender: news@snibln.sni.de (Network News)
- Organization: Siemens Nixdorf Informationssysteme AG, Berlin, Germany
- References: <1992Nov8.222637.5773@nmsu.edu>
- Date: Tue, 10 Nov 1992 09:10:35 GMT
- Lines: 85
-
- willittl@spock.NMSU.Edu (William Little) writes:
-
-
- >Okay, a couple quick questions.
-
- >My employer recently bought Borland c++ compiler for
- >windows and told me he bought some new C+++. I personally
- >have never heard of C+++. Has anybody else? Could he
- >be confused about the Borland C++ 3 compiler for windows?
-
- >Now, on to my c++ questions.
-
- >In the past week I bought a couple books on c++ so I can
- >finally figure out what the difference is. WOW! I have
- >been doing things the hard way! But, I guess I will find
- >out what it is worth when I start developing a windows
- >application... ick.
-
- >The books I bought were for beginners, and didn't tell me
- >much. I went through them in a couple hours, and came up
- >with some questions in areas they didn't cover.
-
- >They made references to the functions and variables in
- >classes two different ways.
-
- >first:
-
- >class.variable
- >class.function()
-
- >That was expected...
-
- >Then, they did this:
-
- >class::variable
- >class::function()
-
- >Also, when they created a class such as:
-
-
-
- >class test (simplistic flow - no flames please)
- > {
- > define variables....
-
- > function1(){
- > code;
- > }
-
- > function2(){
- > code;
- > }
-
- > function3();
- > } // end class
-
- >test::function3() {
- > code;
- > }
-
- >main() { did the goodies }
-
- >They created function3 inside the test class, yet defined
- >the code for it out of the class definition, and used those
- >nasty ::'s that confuse me so well.
-
- >What do the ::'s do??
-
- >The books I bought used them all over the place, but never
- >told me what they did.
-
- >Please help.. :)
-
- >Joseph Good
- >(The sole user of a good friends donated unix account)
-
- >willittl@nmsu.edu
-
- It's so trivial, maybe you should read your books more intensive !!!
- :: is named the scope Resolution Operator, and one Application, beneath others,
- is the definition of Memberfunctions out of the class defintion.
-
- Lars Eisenblatt
- Usually
- lars@pfm.rmt.sub.org
-