Thread: General programming

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'd say you're missing out a lot.
    Boost offers lots of stuff you may find helpful, such as boost::lexical_cast, boost::bind, boost::lambda, boost::shared_ptr, the list goes on.
    And loki provides functors, memory pool, factories, list goes on.

    Why do it the hard way when people have done it for you already?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    I was thinking when I finished these couple of books I should start with an intermediate book perhaps. And while on that think of a project to do. I was thinking about something network related like a simple proxy server. But that's after I'm confident enough with my knowlage and understanding of C++.

  3. #18
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Boost

    Busted!
    There's something I'm a shameless fanboy of.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #19
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    What IDE would be best? I'm currently using Visual C++ 2008 Express Edition but I feel it's quite big for my current status of knowlage. Half of the stuff I don't use. Is there any light-weight IDE with just a compiler, debugger, syntax highlighting, project management and maybe the drop down box auto completion thing that VS uses (I don't really need this but it comes in handy sometimes). Bloodshed looks good but it seems out of date.

    Or should I just stick with VS and get used to it?

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    There is no best, because it's all subjective.
    That mentioned, a list of some IDEs is available at:
    http://cpwiki.sf.net/IDE
    Code::Blocks is one alternative.

    If you don't feel entirely comfortable with Visual Studio, I suggest you try different IDEs.
    Although there's no harm in sticking with Visual Studio either.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    This looks good (Dev-C++ IDE but updated):
    http://wxdsgn.sourceforge.net/

    Says it can use both the MingW compiler and the VS one (not the 2008 one though). It's not been updated in a year though which leads me to believe that they are not active anymore. I'll try it out. I can just uninstall it all in the end if I'm not satisfied.

  7. #22
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I use Codeblocks http://www.codeblocks.org/

    wxdevc++ is nice but still a bit outdated by design I think.

  8. #23
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    What is a better compiler? MingW or VC? What's the difference between the two?

  9. #24
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    GCC/G++ is open source, so anything you compile with it (and most likely any IDE that can use it to compile) also must abide by the GNU General Public Licence and must also be open source. It's good for writing personal projects and stuff, works quite fine, but if you're making larger apps it's most likely you will be doing so for the Open Source Community.

    VC doesn't have those same restrictions, except for debug builds of your program, which you can't distribute. I'm not keen on the whole thing. I hear VC is a leaner compiler and does a lot more optimizations to your code than GCC/G++.

    Also I'm reading Bjarne Stroustrop's - C++ Programming language book and so far like his approach to teaching the language. Granted I'm skipping over a lot of the basics, but the "tour" chapters in the beginning are nice to have if you want to review quickly, and jump to the meat of the book. I previously read MOST of C++ Primer but after a while it got a little wordy and put it down, but it's a really nice book.

  10. #25
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    GCC/G++ is open source, so anything you compile with it (and most likely any IDE that can use it to compile) also must abide by the GNU General Public Licence and must also be open source.
    Wrong! Wrong, wrong, wrong. Dangerously wrong.

    While GCC is under the GPL, it also contains the so-called special exception: the GCC license very specifically says that code generated with GCC/G++, or code linking against the runtime libraries of GCC/G++, is not required to be under the GPL.

    Good lord, if it were otherwise, it would be catastrophic. Pretty much everything under Linux is compiled with GCC: non-GPL open-source projects like X.org and Mozilla. Closed-source essentials like the binary video drivers of ATI and Nvidia. Closed-source applications like Flash. We'd have none of those. Linux would be unusable.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  11. #26
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    So with these optimisations that VC does... does this mean that it's faster than GCC?

  12. #27
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    On average, yes. Though I think GCC is catching up, and some programs may be faster when compiled with GCC.

    Also, VC++ runs faster than GCC, so compiling large projects takes less time.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  13. #28
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    oops...my bad

  14. #29
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Otherwise mostly, they're just merely different compilers.
    Just like there are many different companies producing a product, there are many producing compilers.
    It's mostly a matter of which IDE and compiler you're comfortable with.
    Microsoft's compiler can be tricky to use from the command line, while GCC is must easier, for example.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #30
    Hmm...? gin's Avatar
    Join Date
    Jun 2008
    Location
    Glasgow, Scotland
    Posts
    51
    I've just settled with Visual C++ 2008. I'll just need to try and get used to it. I just feel it's quite slow compared to the 2005 edition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. General Guidelines on Preventing Header File collision
    By stanlvw in forum C++ Programming
    Replies: 12
    Last Post: 07-05-2008, 04:02 AM
  2. Password program / general programming questions
    By plr112387 in forum C++ Programming
    Replies: 13
    Last Post: 11-04-2007, 10:10 PM
  3. Splitting BST General
    By cpp_is_fun in forum C++ Programming
    Replies: 1
    Last Post: 11-25-2005, 02:02 AM
  4. General Trees, calculating height
    By neandrake in forum C++ Programming
    Replies: 3
    Last Post: 04-08-2005, 08:59 AM
  5. General Protection Exception
    By s9uare in forum C++ Programming
    Replies: 1
    Last Post: 11-02-2002, 10:46 AM