Menu

Problem Using Bloodshed Software

Dave
2008-12-31
2012-09-26
  • Dave

    Dave - 2008-12-31

    Hello Everyone,

    I am the Very New Kid On The Block. I Bought a copy of “Sam’s Teach yourself C++ In 24 Hours”, 3rd Edition, a few years ago. I did not get around to using it because I am involved in programming of Microchip using the chip’s Native language. However, I have just started to use this book to learn C++ . The version of Dev-C++ that is on the CD, that comes with this book, is 4.0.

    1/ I would like to know what is the current version of ( Dev-C++ Integrated Development Environment ), and where would I find it. I searched the Web Site, but all I see is a Beta version of the software. Is this the same software???

    2/ I tried compiling my first project ''Hello world!" but I got an error;

      LINE                   UNIT                                          MESSAGE
    
       5            c:\dev-c_~1\helloh~1.cpp      '::COUT' undeclared (first use here)
    

    I would be very grateful if someone could point me in the right direction.

    Thanks very much.

     
    • Dave

      Dave - 2009-01-17

      drmoo,

      Thanks much for that bit of code. It works like a charm.

      cpns,

      Thank you for making known to me that source for info "PLEASE READ BEFORE POSTING A QUESTION".
      See, as I mentioned earlier, I am new to Computer Programming. Just four weeks, so the help you guys provide is invaluble.

      Dave

       
    • Wayne Keen

      Wayne Keen - 2008-12-31

      Ignore the Beta label. It is the release version of the software. You are by far best off using it rather than version 4.

      Please note that C and C++ are case sensitive, so

      COUT

      is not the same as

      cout

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2008-12-31

      You will need to do a clean uninstall of your old version before you you install the current version. There are instructions for doing this in the thead

      "Please Read Before Posting a Question"

      Please take some ime and look at that thread. There is a lot of good information there that has been posted by the users.

      Wayne

       
      • Dave

        Dave - 2009-01-14

        drwayne

        Thank you and cpns for responding to my post. I deleted the old version of DEV C++ and installed the 4.9.9.2 version. So I am up and running now.

        However, there is one little problem. I am practicing with a C code that multiply two numbers. The numbers are entered via the keyboard. When I select RUN, the DOS box comes up with the instruction to enter the numbers. After entering the last number and pressing ENTER, the box just disappears.

        I would like to know where to find the results. I have tried every button but in the GUI and the help topics but no success.

         
    • cpns

      cpns - 2008-12-31

      I am surprised that teh 3rd edition comes with such an ancient version of Dev-C++, since publication date was 2005 as far as I can tell. Version 4 came with GCC2.95 I believe, which does not support namespaces. This may cause conflicts with the code in the book, or the book's code is out-of-date too, and it will cause conflicts with the later version of Dev-C++.

      I would hope that a book published in 2005 would not use pre-ISO code when the standard was completed in 1999. Which begs the question why it was shipped with an ancient Dev-C++ version.

      In future post the complete log text from the Compile Log tab rather than the filtered messages from the Compiler tab, and post the code too.

      When you do upgrade the tool, use the provided "hello, world" project template and compare it with what the book shows. File->Project->New, Introductory->Hello World.

      Clifford

       
    • anonymous nobody

      Add

      include <cstdlib>

      to the start of the file, and before the last curly bracket in main just type:
      system("pause");
      F.ex.

      include <cstdlib>

      main()
      {
      //code here
      system("pause");
      }

       
    • cpns

      cpns - 2009-01-15

      When a program terminates, its window is closed. This is the normal behaviour of the OS, but it seems to surprise people nonetheless. The issue is mentioned in the "PLEASE READ BEFORE POSTING A QUESTION" already mentioned.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.