LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   C C++ Programming (https://www.linuxquestions.org/questions/programming-9/c-c-programming-935703/)

shwethavb 03-21-2012 10:57 AM

C C++ Programming
 
Want to know in detail, what is top down approach and bottom down approach in terms of C C++?

johnsfine 03-21-2012 11:17 AM

In any programming language:
Top down means you divide the problem you want to solve into pieces and then subdivide each piece into more pieces until they are small enough to code each piece as a very simple function.

Bottom up means you have enough experience and/or intuition to know what kind of specialized "tools" the project will need and you start by coding basic tools using the built in capabilities of the language, then code increasingly more complex and/or project specific tools in terms of the tools you have already coded until the whole project becomes simple as a result of use of project specific "tools".

Real projects are not actually approached with a pure project structure resembling either of those.


All times are GMT -5. The time now is 07:59 AM.