Announcement

Collapse
No announcement yet.

Good free C++ Compiler?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Why be suspicious because of using namespace std? (BTW, the book also told me I could omit that line and write std::cout <<... but that is a little tiresome if I have to do it for every command )

    AZ
    There's an Opera in my macbook.

    Comment


    • #32
      The std namespace has lots of stuff in it and by using namespace std you're reasonably likely to get a namespace collision.

      For example, the std namespace has something in it called 'count', which effectively means you cannot declare something else called count as the compiler would not know what you are refering to, std::count or just your count.

      if you don't want to have to type std::cout the whole time you can do

      Code:
      using std::cout;
      Which does the same thing but just for std::cout and not the whole namespace.

      Comment


      • #33
        Thanks for the warning

        I tend to use german names for my variables, functions, etc, because that makes distinction between my own and the language's names even easier, so I guess the risk for me will be low

        BTW, the book is "GoTo C++ Programmierung" be André Willms, published by Addison-Wesley.

        AZ
        There's an Opera in my macbook.

        Comment


        • #34
          Just beware of those ü.
          The compiler are a bit picky about non-english letters.
          <font size="-4">User error:
          Replace user and try again.
          System 1: P4 2.8@3.25, P4C800-E Deluxe, 1024MB 3200 CL2, 160+120 GB WD, XP Pro, Skystar 2, Matrox Parhelia 128R, Chieftec Dragon Full Tower (Silver).
          System 2: P4 2.0, Intel 845, 1024MB Generic RAM, 80GB WD, XP Pro, Promise Ultra133 TX2, GF3 Ti500. Resides in a neat Compaq case.
          </font>

          Comment


          • #35
            no high-ascii characters I'm used to that from HTML

            AZ
            There's an Opera in my macbook.

            Comment


            • #36
              Another alternative would be OpenWatcom.


              This compiler doesn't follow 100% C++ standards, but it's sure something to look at.
              Do you remember the games using DOS4GW under DOS? Well all games were coded using Watcom.
              cu/2 magog - Germany - flying with OS/2 Warp speed...in a vehicle named eComStation (eCS)
              ---
              Author of the Java Movie Database - http://www.jmdb.de
              JMDB v1.35 FINAL is available (2007-09-20)
              Homepage: http://www.juergen-ulbts.de/

              Comment

              Working...
              X