different versions of c?

This is a discussion on different versions of c? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi, So what are the differences between all the different versions of c or c++? I see visual c, turbo ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    100

    different versions of c?

    Hi,
    So what are the differences between all the different versions of c or c++? I see visual c, turbo c, ansi c, c99, etc. What does it all mean?? If you can name some others that would be good too.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    http://en.wikipedia.org/wiki/C99#History

    Visual c and turbo c are just compilers/ide

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    Visual C++ 6 and TurboC are also museum pieces.

  4. #4

    Join Date
    May 2005
    Posts
    1,041
    I use nothing but Visual C++ 6.

    No real reason to change.

    I have .net, never use it.

    EDIT:
    what do you use salem?
    Last edited by BobMcGee123; 03-03-2006 at 08:50 AM.
    I'm not immature, I'm refined in the opposite direction.

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>No real reason to change.

    how bout this as a reason
    Code:
    for (int i = 0; i < 10; i++) {
      //foo
    }
    
    for (int i = 0; i < 10; i++) {
      //bar
    }
    VC++ POS-Compiler-Crap: Error, the variable 'i' has already been declared.

  6. #6
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    >>No real reason to change.

    It may need a few fixes.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    Well during the week I use two different compilers for the embedded platforms being developed, along with Borland builder and gcc under cygwin (and the code also has to compile with Visual studio as well) for host development.

    At the weekend, I use gcc on Linux, and some dev-c++ or gcc under cygwin if I'm in a PC mood.

    Plus a collection of museum compilers for that old-time feeling

    As you can see, I have no time for "works with this compiler" type of programming (void main'ers take note). I need and use code which is standard C, which has a passable chance of compiling the same on all platforms. It also means on a day to day basis that I don't really care about which compiler I'm using.

    > If you can name some others that would be good too.
    http://www.compilers.net/
    http://www.thefreecountry.com/compilers/index.shtml

  8. #8

    Join Date
    May 2005
    Posts
    1,041
    >>how bout this as a reason

    Never bothered me, I'm so used to it that getting rid of that 'problem' would probably just aggravate me.

    >>It may need a few fixes.

    Duly noted, although those all seem to be problems fixable in under ten seconds in the stl libraries (meaning, why go out and buy a new compiler/ide if all the major problems are ).

    @salem: so, you're a professional programmer. Makes sense that you need the high tech up-to-date stuff with perfect (or as close to perfect) ANSI C specifications. I have no intention of ever going into the professional software development field, my method has always been 'find something that works, and stick to it stubbornly.'
    I'm not immature, I'm refined in the opposite direction.

  9. #9
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Quote Originally Posted by Perspective
    VC++ POS-Compiler-Crap: Error, the variable 'i' has already been declared.
    I recognise the second part of that error message but I don't recall ever seeing the first - maybe I need to apply a 'service pack'.

    I don't think any of the ms compilers handle c99; this from msvc++.net 2003 help:
    Quote Originally Posted by msdn, topic 'c99'
    Because the timing of the release of C99, this version of Visual C++ is not conformant with that standard.
    I don't think their latest offering(msvc++ 2005) is any better in this regard - I recall reading something about a lack of customer demand for c99 but, unfortunately, can't provide a link/quote for that.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  10. #10
    Registered User
    Join Date
    Jan 2006
    Posts
    100
    So what was unique about Turbo C and Visual C? What did they do differently? What did "Visual" imply?

  11. #11
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Visual C++ was Microsoft's line of compilers. It's IDE had certain features that made the programming process more visual - like a drag and drop form designer, stuff like that. Turbo C++ was Borland's line of compilers. I liked them - but there wasn't anything terribly unique about them. They weren't perfect with the standard, but they were pretty good.

  12. #12
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    I have no intention of ever going into the professional software development field, my method has always been 'find something that works, and stick to it stubbornly.'
    Then don't throw out that DOS PC. But if you ever intend to write programs for Windows, then you're in for an eye-opener.

    Turbo C and Visual C++ were early IDEs. They packaged the compiler, editor, etc. into a package to make code development easier. These programs have been superceded numerous times by their own later version, but also more recently by better, more standards compliant compilers that are free and can generate code for modern operating systems.

    Besides being a marketing term, the "Visual" meant you could do some things such as icon or dialog editing in them too. Easier generation of GUI applications.

    IMO/IIRC Turbo C was pretty much obsolete or heading that way by Windows 3.1, and Visual C++ went that way when C++ was standardized in 1998.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  13. #13
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,941
    Duly noted, although those all seem to be problems fixable in under ten seconds in the stl libraries (meaning, why go out and buy a new compiler/ide if all the major problems are ).
    I've read that MSVC6 (and MSVC7.0, but not MSVC7.1) doesnt handle templates correctly, so may have problems with code that implements some advanced template techniques like those used in Blitz++.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  14. #14
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    Visual C++ 6 doesn't implement the ISO standard at all correctly (something like 60% I believe?).
    Cannot really blame Microsoft for it as the standard was still being finalised when they created it, but enough reason to ditch it for something more recent (like VC2005 and the PSDK, which are about 3 months old instead of 10 years).

    Only trouble I've with VC2005 Express on my machine is that it's somewhat unstable and tends to hang when doing things like trying to access the context sensitive help or switching projects, but apart from that it looks and works nicely.

    You'll have to get used to using all unicode though for Win32 applications, unless I've missed a setting somewhere that forces 8 bit strings.

  15. #15
    Registered User
    Join Date
    Jan 2006
    Posts
    100
    Thanks for the replies folks, good info

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Run time differences in Linux gcc versions
    By circuitbreaker in forum C++ Programming
    Replies: 7
    Last Post: 02-14-2008, 10:09 PM
  2. two different gcc versions found?
    By musikluvah in forum C Programming
    Replies: 2
    Last Post: 01-30-2006, 04:53 AM
  3. MSVC++ Versions
    By Vicious in forum C++ Programming
    Replies: 19
    Last Post: 09-17-2004, 07:56 AM
  4. Replies: 3
    Last Post: 05-07-2003, 05:16 PM
  5. Different Library Versions Help
    By jdkimble in forum C++ Programming
    Replies: 1
    Last Post: 06-28-2002, 07:55 AM

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