how do i write file keywords in pseudocode
pesudocode
Started by hbk, Mar 23 2010 12:52 PM
2 replies to this topic
#1
Posted 23 March 2010 - 12:52 PM
|
|
|
#2
Posted 23 March 2010 - 02:09 PM
Psuedocode is a made up language that you write in whatever language you desire that lets you see how the logical flow of your program will go, it has whatever mnemonics or keywords that you want it to have.
"The best optimizer is between your ears" - Michael Abrash
Saying you can optimize a program is like saying you understand how a program works on every level of every facet on a specific machines configuration.
Saying you can optimize a program is like saying you understand how a program works on every level of every facet on a specific machines configuration.
#3
Posted 23 March 2010 - 07:42 PM
Exactly.
for instance,
would be represented in pseudocode as:
print all values in an array, from index [min] to index [max], separated by tabs.
So you represent things in whatever way is the easiest for you personally to understand. Everyone has their own style of pseudocode. the same above could be written as
printf array[min]...array[max]
if that's how you prefer to see it.
for instance,
int i;
for(i = min; i < max; i++)
{
printf(%d\t, array[i]);
}
would be represented in pseudocode as:
print all values in an array, from index [min] to index [max], separated by tabs.
So you represent things in whatever way is the easiest for you personally to understand. Everyone has their own style of pseudocode. the same above could be written as
printf array[min]...array[max]
if that's how you prefer to see it.


Sign In
Create Account


Back to top










