Thread: C++ IDE features

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    1

    C++ IDE features

    I am a java guy and Eclipse fan. Now I want to try C++. I want to find a C++ IDE which has these features:

    1. automatically include head file.
    for example,
    I write "ofstream ...", it will automatically add "#include <fstream>" for me.

    2. it has source format function. If the codings are out of format, highlight it, right click "format", it will be in the format. Eclipse for java has this function.

    BTW, where could I find the class documentation, just like javadoc html files?

    Thanks.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Requests for compilers are best posted on the Tech board. Moved.

    edit:

    You can use eclipse with the c++ cdt.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >1. automatically include head file.
    In other words, you don't want to learn what goes where in the standard library. This doesn't strike me as a good feature anyway. If you remove all instances of (for example) ofstream, will you expect the IDE to remove the header as well?
    My best code is written with the delete key.

  4. #4
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    What do you mean by "out of format"? Code::Blocks comes with a source code formatter that (at least) automatically indents your code (heck, it even has a "Java" setting)

    Personally, I'd recommend Code::Blocks or Visual C++ 2005. (unless you're willing to pay for an IDE) Dev-C++ has also been recommended in the past, but it appears that there's no active development still going on there.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    czy11421, you can't ask C++ IDE to automatically include headers, because C++ is not so limited language as java is. Maybe there are 4 different headers for one function? You really want an IDE to automatically read every include file, when it finds an undeclared? An IDE is not meant to be a MEMORY EATER.
    The same question, what do you mean by "out of format"? If you mean indents and that type of stuff, then you may try what JaWiB recommended. But one thing I can tell you, no program can be that intelligent, to fix errors in your code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IDE
    By djnorthyy in forum C++ Programming
    Replies: 6
    Last Post: 03-31-2008, 11:56 AM
  2. CBoard IDE of the year
    By cboard_member in forum A Brief History of Cprogramming.com
    Replies: 30
    Last Post: 12-09-2005, 07:50 AM
  3. Best IDE feature
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 01-18-2004, 10:43 PM
  4. motherboard has 2 IDE socket?
    By beely in forum Tech Board
    Replies: 16
    Last Post: 10-30-2002, 10:55 PM
  5. HD on IDE 2
    By W.Churchill in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 03-13-2002, 08:53 PM