Re: Procedural programming vs Structured programming
"howa" <howachen@xxxxxxxxx> wrote in message
news:0dd81873-dbbb-4de6-b984-ae60750cb825@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can anyone give me an example to show their differences?
Seem they are the same thing but some say they have some differences.
A "procedural" program doesn't have to be "structured". Some early Fiortran
programs contained no subroutines, for insta
nce.
However, as a general rule, procedural programs are written in languages
like C or Fortran or Basic that specify a list of tasks in order - as
opposed to languages like C++ which specify objects with methods and
interactions, or language like Lisp which specify "functions" or mutations
of lists - and are also structured, in that there is pyramid of subroutines,
with most variables local to each subroutine.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
Relevant Pages
- Re: Optional Fonts in the Theme Builder
... Those "optional fonts" list various fonts for various asian languages. ... It lets you specify a font for a specific "foreign language". ... If you're not specifying languages and fonts there, I probably wouldn't worry about it too much. ... Fonts" lists under Theme Fonts on the Colors & Fonts tab are populated. ... (microsoft.public.powerpoint) - Re: Help Constructing Fictional Cross-Religious Movement
... >>> subroutines and functions, but that it offers a way to break up ... certainly ill-adapted to do things that OO languages are good at. ... I can do everything with iteration that I ... >can do with recursion; if that's the case, ... (rec.arts.sf.composition) - Re: Constant Hash problem
... >> You can't because perl implements constants using subroutines and ... > Perl subroutines return only lists but it converts them to hashes ... Any list can be assigned to a hash just as a hash can be assigned to a list. ... (perl.beginners) - Re: Program Fails When Parameter Fixed Constants are Changed (F77) ??
... Common Block /XYCRT/ Xcrt, Ycrt, n ... I would recommend fixing this before converting it to a module. ... these lists so that they agree with those that use the other list. ... the other set of subroutines. ... (comp.lang.fortran) - Re: How to insert or append new items into a perl hash ?
... But the answer to your question is found in perldoc perlsub and is this: subroutines only ever receive and return lists. ... but if it has a more complicated structure than that it will be lost. ... To do what you want you have to use a reference to the hash; too complicated to explain here with your level of knowledge. ... (comp.lang.perl.misc) |
|