variations of c++

This is a discussion on variations of c++ within the C++ Programming forums, part of the General Programming Boards category; I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout. Does ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    28

    variations of c++

    I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout.
    Does this mean that one needs to learn all these different variants?
    Thanks
    Michael

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

    Re: variations of c++

    Originally posted by m.albert
    I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout.
    Does this mean that one needs to learn all these different variants?
    Thanks
    Michael
    Huh? printf() and similar functions are C. cout and similar objects are C++.

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,648
    Here's what suggest m.albert: get a good book on C programming and go through it. Then get a good book on C++ programming and go through it.
    Here are some good starts:
    C Book
    C++ Book

    gg

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    28
    I've started learning C++ but have the impression that this requires a lot of hard work.
    Michael

  5. #5
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    Duh! Learning anything requires hard work. You can't just decide not to do something because it requires effort.
    L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!

    Speling is my faverit sujekt

    I am a signature virus. Add me to your signature so that I may multiply.

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I've started learning C++ but have the impression that this requires a lot of hard work.
    Programming is hard. C++ is more difficult than BASIC. Most of us here enjoy it! (Others are "stuck" in a class.) I'd say you have to study C++ for at least a year before you're going to impress anyone with your programs. So, if you don't enjoy the process of learning to program, it is too much work!!!

    Learning to program is not simply learning a task, it's learning a skill. Maybe like learning to play a musical instrument... It's one thing to learn to play a simple song (a task) It's much more difficult to actually learn to play the instrument!

    [EDIT]
    There is ANSI/ISO standard C++ which is "portable". The platform specific stuff is additional. If you write to the standard, any compiler should work. You have to use platform specific functions if you want to interface with a mouse, or a sound card, or the windows operating system (which not all platforms have).

    If you write standard C++, you can use a PC compiler to make an execuitable file for the PC, and recompile with an Apple compiler to make an execuitable file for the Apple. (It won't be a GUI program.)
    Last edited by DougDbug; 03-04-2003 at 05:42 PM.

  7. #7
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Reading albert's posts is fun!!
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  8. #8
    Registered User
    Join Date
    Feb 2003
    Posts
    28

    Thanks DougDbug

    Thanks DougDbug for the good advice.
    I suppose that reading and writing code is the way to go about it.
    Any other ways to progress quickly?
    Michael

  9. #9
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Read a good book and stop going to this site.
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows message loop variations
    By Leeman_s in forum Windows Programming
    Replies: 1
    Last Post: 01-10-2003, 08:01 PM
  2. DOS booting variations
    By ustuzou in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 02-19-2002, 02:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21