📄 http:^^www.cs.engr.uky.edu^~oldham^release.3.released
字号:
Date: Tuesday, 14-Jan-97 23:11:11 GMTServer: NCSA/1.3MIME-version: 1.0Content-type: text/plainLast-modified: Wednesday, 25-Sep-96 19:07:22 GMTContent-length: 1663OK, last time I described an algorithm. I have started turning that intoFORTRAN source code. What is below is nothing more than the declarationsand so on needed to ask for 1 grocery name, and prompt for the datafor that grocery. I.e. it corresponds to this much of the algorithm:BEGIN1 get CANGOO from user2 get GROC1 from userThat is ALL. It gets me ready for:3 get CGWT1, CGCST1 from user (at this prompt I can echo GROC1 to user that way s/he is less likely to err* File: release3.f* Author: Joe Oldham* Date: 9/1996** Test compilation and reading in of CANGOO* PROGRAM GROCER CHARACTER *15 CANGOO * Next Block gets canned good name -- NO VALIDATION PRINT *,'What canned good? ' READ *, CANGOO* Next block will get grocery names, can size, cost, for GROC1-GROC3* for now it is just GROC1 PRINT *, 'Name 1st Grocery? ' READ *, GROC1 PRINT *, 'Wt in oz & cost (d.c) of ',CANGOO,' at ',GROC1* Rest of algortihm goes here STOP ENDOnce I get the syntax errors out of this I'll run it and thesecond PRINT statement will tell me if I am getting thegrocery name I expect (harder in come languages than it isFORTRAN.) THEN I will add code for line 3 of the algorithm (reading some values, and maybe even line 6 (computing.)Remember, I said before I am not going to fool with lines 4,5and so on, lines for second groceries, until I have somethingworing for the first grocery.If I add implementation of line 6 of my algorithm in mynext step of implementation I will CERTAINLY add a temporaryline that shows me the value (CPO1) that I coimputed.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -