English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

8 answers

A formal programming language is one that can be compiled and ran (like C).
Pseudo-code is not in any specific language. It simply shows you the logic that one would use if they were to write a program.

2006-12-26 03:54:46 · answer #1 · answered by Crazy Malamute 3 · 2 0

Pseudo-code is not really code, it is more of an outline for the programmer. It is easily readable and doesn't need to be bound by any language.

Everybody's pseudo-code is probably different from anybody elses.

Here is an example:

Start function (process number)
Fill array "processes" with pointers to functions
Start swich (process number)
case 1
call processes(1)
case 2
ETC.
End Swich
End function

which could turn into this:

runProcess(int processNumber){
void (*fp[])(int) = {func0, func1, func2 };
switch(processNumber){
case 0:
fp[0]();
break;
case 1:
fp[1]();
break;
}
}

A little rough, but you get the idea.

For some reason the spaces got deleted

2006-12-26 04:31:49 · answer #2 · answered by Tyler H 3 · 0 0

Pseudo-code is a natural language version of a program. That is,

program starts,
prompt user for age
prompt user for social security number


whereas in a formal programming language such as C, you do it in actual code.

2006-12-26 03:57:30 · answer #3 · answered by Emperor Insania Says Bye! 5 · 0 0

Pseudo-code takes the place of a real programming language. You can use something easier, in plain English if you wish, to layout and construct how your program before you use the actual programming language itself.

iow, you can write something like this:

Get keypressed from keyboard
Then display that key on the screen
If it's a "j" then save to the hard drive.

2006-12-26 03:56:29 · answer #4 · answered by drhowarddrfine 2 · 2 0

Pseudo code is an ad hoc list of statements in an easily readable form, not too verbose. It's intended to formalise the sequence of events but not to go into great detail. It is not sufficient for any compiler to generate code, but the reader should be sufficiently skilled to translate it into source code themselves, in whichever language they are familiar with.

2006-12-26 03:54:55 · answer #5 · answered by Anonymous · 0 0

The garden is a spot that not all the properties can presume, If you want to make your personal dream backyard then pick https://tr.im/NBaRQ , Ideas 4 Landscaping for beginners and experts.
The Ideas 4 Landscaping is a complete landscaping resource with thorough diagrams, full with shade photographs and examples on many sorts of landscaping types. It is almost everything you'll require to get commenced in making the ideal outside so you don’t dream any longer and make it possible.

2016-04-15 03:22:48 · answer #6 · answered by Anonymous · 0 0

Psuedo-code is not really code. Its a diagram on what the intended code should do. Real Code is, well, real code.

PSUEDOCDOE:
if date is not blank and date is valid
insert into dB
else
show error message
end if

REAL (COLDFUSION) CODE:


insert into myTable (thedate)
value ('#dateformat(form.thedate,"mm/dd/yyyy")#')


We're sorry but the date is unknown, please re-enter and try again.

2006-12-26 04:03:07 · answer #7 · answered by The First 3 · 2 0

Why are you SHOUTING!

2006-12-26 04:50:30 · answer #8 · answered by Startrekforever 2 · 0 0

fedest.com, questions and answers