I never Finish my programs :(

This is a discussion on I never Finish my programs :( within the C++ Programming forums, part of the General Programming Boards category; I got this weird problem that i actualy almost never finish my programs.... when im 80% done i always see ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    86

    I never Finish my programs :(

    I got this weird problem that i actualy almost never finish my programs.... when im 80% done i always see somthing that could be added or SHOULD be added to fullfill the programs function

    this way i just keep going and keep going and it just gets me insane and eventually i just stop , delete the whole thing and some days later start to make THE SAME application and just stop again with it too....

    and i also have a hard time overviewing my program's source, how do u rapidly find the functions u are looking for when u have 1000 lines of code ....

    i seriously need some advice here lol.

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    You can use the search (or find) function.

  3. #3
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Split the source code into multiple files, so you won't have 1000 lines of code in one file.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Comment your code, not on whats happening, but on why your doing it.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    86
    Oh yeah that seems a good idea

  6. #6
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,706
    Borland's IDEs, like many IDEs, have a neat pane that list all of the functions, templates, and classes in a file, so they are easy to find.

  7. #7
    Registered User
    Join Date
    Nov 2006
    Posts
    86
    going to get me a borland compiler

  8. #8
    Registered User
    Join Date
    May 2006
    Posts
    903
    Make sure to compare with other IDEs. From what I know, Borland has a graphical API that is highly non-portable (read not at all) which makes your code compilable only using Borland which implies that you will have a hard time getting any help at all should you have a problem. You may consider VC05 Express which is free and is much better, in my opinion.

  9. #9
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,706
    > Borland has a graphical API that is highly non-portable (read not at all) which makes your code compilable only using Borland

    That problem is fixed by not using <graphics.h>, just so you know.

  10. #10
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    Start with a plan of what you want the program to do, then think about how you're going to do it.

    Nothing grand to start with, a few notes and a simple class diagram on a couple of sheets of A4 ought to do it. Then implement it and stick to the plan.

    If you think "wouldn't this be good..." along the way, then make a note of it for version 2. Resist the temptation to hack it into the design and code it there and then.


    Hack it until it breaks doesn't work (as you're finding out).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  11. #11
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    > Borland's IDEs, like many IDEs, have a neat pane that list all of the functions, templates, and classes in a file, so they are easy to find.
    The latest version of Dev-C++ has a "code explorer" as you described. Dev-C++ is released under the fre GNU GPL. So is Code::Blocks; I imagine it has a code explorer as well.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  12. #12
    Registered User
    Join Date
    Nov 2006
    Posts
    86
    Quote Originally Posted by Salem View Post
    Start with a plan of what you want the program to do, then think about how you're going to do it.

    Nothing grand to start with, a few notes and a simple class diagram on a couple of sheets of A4 ought to do it. Then implement it and stick to the plan.

    If you think "wouldn't this be good..." along the way, then make a note of it for version 2. Resist the temptation to hack it into the design and code it there and then.


    Hack it until it breaks doesn't work (as you're finding out).
    tnx for the advice will do !!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 06:32 AM
  2. Newbie question: pointers, other program's memory
    By xxxxme in forum C++ Programming
    Replies: 23
    Last Post: 11-25-2006, 12:00 PM
  3. Communication between programs?
    By johny145 in forum Windows Programming
    Replies: 3
    Last Post: 06-01-2005, 10:14 PM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM

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