LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-17-2005, 02:02 AM   #1
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Rep: Reputation: 15
Difference between Top Down programming & Bottom up programming


Hi
i am new to C++ programming. i read in a book , c follows top down approach & c++ follows bottom up programming. i did'ng get exact meaning. can any one tell me the exact meaning with examples

Thanks in Advance
Minil
 
Old 06-17-2005, 02:42 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
top down:
you write first the main function, that calls stubs, then you subdivise these stubs in smaller stubs until a real work has to be done, that you code in the final files.

bottom-up:
you write (or gather) small components that do basic actions that are required to do the full program work. Then you assemble them by custom code, then assemble these parts to write the main method.

The reality is seldom one or other approach, but a combination of them.
What is certainly wrong is trying to start coding from the middle ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between ch and 'ch' - C programming indian Programming 3 09-30-2005 11:32 AM
command to read from bottom to top (like more) tommy916 Linux - Newbie 3 07-01-2005 07:34 PM
whats difference between OT and GTK programming cranium2004 Programming 1 03-04-2005 10:40 PM
FC3: Top and Bottom panel Cyberian Fedora 1 11-09-2004 04:01 PM
top/ip programming? Stewart Linux - General 1 10-27-2002 02:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration