This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2020:cprog:projects:sam0 [2020/03/16 11:55] – [Program] wedge | haas: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/ | Your program should be a "one shot". It should only perform its intended operation and exit. No prompting for encode/ | ||
- | When compiling, an additional constraint is added: compile with the **-Wall** | + | When compiling, an additional constraint is added: compile with the **-Wall** |
====Sample execution: encode==== | ====Sample execution: encode==== | ||
Via positive command-line key: | Via positive command-line key: | ||
Line 68: | Line 68: | ||
" | " | ||
" | " | ||
+ | emmbzwc | ||
+ | goodbye | ||
^D | ^D | ||
lab46: | lab46: | ||
</ | </ | ||
- | (**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 ' |
Via negative command-line key: | Via negative command-line key: |