I have just sent him an email to clarify this. I agree wiith you, to me pseudocode should be like more descriptive comments, however it seems he wants us to use C style pseudocode, like what I did above. Languages such as HAGGISbridge the gap between pseudocode and code written in programming languages. Flowcharts, drakon-chartsand Unified Modelling Language(UML) charts can be thought of as a graphical alternative to pseudocode, but need more space on paper. You might mention it once as an additional comment the first time you used it, but that's about all.Interesting, thanks Salem. Pseudocode resembles skeleton programs, which can be compiledwithout errors. ) Would I have to include that in the pseudocode ? The for loop I would replace with a pseudo code line of say "search predefined apertures for a match", then an indented block of pseudo code to describe the inner detail of "matching apertures". Sscanf( buff, "%f", &exposure ) The idea being you could just paste your pseudo code into an empty source file, go through it putting /**/ comments around each line, then start filling in the details with actual code. Code: /* Prompt for and read exposure value */
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |