User Tools

Site Tools


haas:spring2020:cprog:projects:sam0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2020:cprog:projects:sam0 [2020/03/16 11:55] – [Program] wedgehaas:spring2020:cprog:projects:sam0 [2020/03/27 14:15] (current) – [Sample execution: encode] wedge
Line 60: Line 60:
 Your program should be a "one shot". It should only perform its intended operation and exit. No prompting for encode/decode, no "do you want to go again"... just a read from input, process, output, and exit with appropriate return value. They should conform to the execution examples found in this project. Your program should be a "one shot". It should only perform its intended operation and exit. No prompting for encode/decode, no "do you want to go again"... just a read from input, process, output, and exit with appropriate return value. They should conform to the execution examples found in this project.
  
-When compiling, an additional constraint is added: compile with the **-Wall** flag.+When compiling, an additional constraint is added: compile with the **-Wall** and **<nowiki>--</nowiki>std=gnu99** flags.
 ====Sample execution: encode==== ====Sample execution: encode====
 Via positive command-line key: Via positive command-line key:
Line 68: Line 68:
 "hello"!! "hello"!!
 "jgnnq"!! "jgnnq"!!
 +emmbzwc
 +goodbye
 ^D ^D
 lab46:~/src/cprog/sam0$  lab46:~/src/cprog/sam0$ 
 </cli> </cli>
  
-(**NOTE:** ^D indicated the CTRL-d sequence, which generates an EOF).+**NOTE:** ^D indicated the CTRL-d sequence, which generates an EOF. That is the keypress you use to terminate the program; do NOT have your program display '^D' and exit on its own after one input, for there may be many.
  
 Via negative command-line key: Via negative command-line key:
haas/spring2020/cprog/projects/sam0.1584359709.txt.gz · Last modified: 2020/03/16 11:55 by wedge