Thread: hello world

  1. #16
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Just for the record C++ is an Object Oriented Programming Language
    Is it? Last I heard C++ was an Object Oriented extension slapped on a procedural language.

    >So why teach in a non-object oriented manner?
    Because C++ is capable of both OO and procedural solutions, so to truly learn the language one would have to learn both. Since procedural is usually easier to accept in the beginning it is often taught first and the concepts of OO are saved for when the learner can better handle it.

    >A perfect example is my nephew (he is 3) and counts to 50,
    >knows all of his abc's and can almost tie his own shoes.
    Good for him, he's obviously ready for Polymorphism, Inheritance, and Encapsulation, so what's keeping you from teaching him C++?

    >He learns this by being exposed to it.
    >Not by having to wait.
    >If you are getting started DON’T be lazy! Learn what you have to learn.
    Good idea, hit someone new to programming with the whole complexity of C++ and watch how long they stick around. Start easy so that you don't scare them off, then slowly build up. You may like to be overwhelmed constantly, but you would be the exception.

    -Prelude
    My best code is written with the delete key.

  2. #17
    My diaper's full....... stevey's Avatar
    Join Date
    Nov 2001
    Posts
    746
    i can only program in C (and its debatable-i'm only at weenie stage). i'm learning C++ and visual C++, altho its only a hobby now, ive given up on ever getting a C programming job......

    i think its better to learn C first, then C++ after rather than overload my tiny mind. i don't think the concept of OOP is easy at all...course i'm probably as thick as a whale sandwich...
    Steve

  3. #18
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    I actually started with [WHISPER]VB[\WHISPER] and then went to C++. Personally, I find OOP fairly easy to understand in principle (read Bruce Eckal, Thinking in C++). In practice, I find the hardest bit of OOP is what are my objects. That bit just doesn't seem to flow naturally for me.

    To put it another way, the theory seems very pretty, but the practice looks hacky & ugly!!
    Visit entropysink.com - It's what your PC is made for!

  4. #19
    Patent Pending GSLR's Avatar
    Join Date
    Sep 2001
    Posts
    134

    ?

    Hi

    Have been learning c for a year now, do ok i suppose.

    Whats a class???

    Q
    And To All Those Opposed, WELL !!!
    >Deleted< " Looks like a serial no."

  5. #20
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    GLSR, if you been studying just C and not C++ then don't feel bad about not know what a class is. Classes were introduced in C++. Basically think of a class as a struct that can have functions as members that manipulate/return the variable members.

    Like this:

    In C
    Code:
    struct Test
    {
       int i;
       int j;
    };
    
    Test test;
    
    int GetI()
    {
        return(test.i);
    }
    In C++
    Code:
    class Test
    {
    private:
       int i;
       int j;
    public:
       Test();
       ~Test();
       int GetI();
    };
    
    Test test;
    
    int k=test.GetI();

  6. #21
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    Does anyone remember how hard it was to learn C++ without any prior programming knowledge? I certainly do, and I had enough to cope with trying to figure out pointers for the first time. Classes in the first program would have made it so much harder to understand!

    ps hi all, I have been unregistered for ages but finally got round to it

  7. #22
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    C++ is very intimidating(sp) before you get the big picture. I was losing hair when I first started. I stil don't know much but I got to the point where it is fun and it flows alot better because I got the concept down.

  8. #23
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    it actually didn't seem that hard to me. at first i was confused on why people want/need objects, but it makes sense now. when engineered correctly (a big if), objects encapsulate the many details. it becomes much easier. however, linux doesn't seem to use it that often (to my knowledge). it prefers C. libraries aren't put into objects, they're just functions and defines. i'm confused on why linux doesn't use more c++.

  9. #24
    My diaper's full....... stevey's Avatar
    Join Date
    Nov 2001
    Posts
    746
    can you give a simple example of why we need/want objects ??? cos i'm not really sure on this at all...
    Steve

  10. #25
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    Visit entropysink.com - It's what your PC is made for!

  11. #26
    Registered User
    Join Date
    Aug 2001
    Location
    Melbourne, Australia
    Posts
    92
    oh ffs! its kinda obvious that you should keep the first lesson simple, then move on to the slightly more complicated concepts.

    that guy that was talking about the 3 yearold kid:

    did you try to teach him/her the whole alphabet in his/her first lesson? NO? i didn't think so :P

    -out-
    PsychoBrat
    psychobrat at gmail

  12. #27
    My diaper's full....... stevey's Avatar
    Join Date
    Nov 2001
    Posts
    746
    Originally posted by RobR
    There's a thread here...
    thanx, i will peruse that link shortly.....
    Steve

  13. #28
    Registered User OxYgEn-22's Avatar
    Join Date
    Apr 2002
    Posts
    36

    Question OpenGL Game Book!!!!!!

    Going back to the book subject for a minute , I actually own the book "OpenGL Game Programming" by the "Game Development Series" and I find it to be fantastic!!, Bought over amazon.com because this book was expensive as hell!!! but i love it to death. It has all sorts of good code to use. I was wondering if anyone else had read a book by this series?? I was thinking about buying the Multyplayer Game Programming book next, anyone have that and want to comment on it??
    Is that air you're breathing?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The 7 New Wonders of the World
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 12-08-2006, 01:55 PM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. Too much to ask ?
    By deflamol in forum C Programming
    Replies: 2
    Last Post: 05-06-2004, 04:30 PM
  5. No More Technology After World War Three
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-20-2001, 07:02 PM