home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!destroyer!fmsrl7!lynx!nmsu.edu!usenet
- From: willittl@spock.NMSU.Edu (William Little)
- Subject: c++ & c+++
- Message-ID: <1992Nov8.222637.5773@nmsu.edu>
- Sender: usenet@nmsu.edu
- Organization: New Mexico State University
- Date: Sun, 8 Nov 1992 22:26:37 GMT
- Lines: 76
-
-
- 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
-
-