Add 1988/westley/demo.sh + format/typo check
The reason for the demo is because when one looks at the code and then sees the output at the same time it's far more beautiful and magical. The README.md has been typo and format checked. With this commit, the README.md files for the 1988 entries have been checked and besides some things brought up on GitHub they should be in good order (for now?).
This commit is contained in:
1 parent
5acb285dda
commit
70fa8f5ee9
3 files changed
+28
-2
No files matched your search
+10
-2
@@ -10,8 +10,8 @@ US
|
||||
make all
|
||||
```
|
||||
|
||||
NOTE: this version is a fixed version for modern C compilers. See the Alternate
|
||||
code section below for how to use the original.
|
||||
NOTE: this version is a fixed version for modern C compilers. See the [Alternate
|
||||
code](#alternate-code) section below for how to use the original.
|
||||
|
||||
|
||||
## Try:
|
||||
@@ -20,6 +20,14 @@ code section below for how to use the original.
|
||||
./westley
|
||||
```
|
||||
|
||||
Also try:
|
||||
|
||||
```sh
|
||||
./demo.sh
|
||||
```
|
||||
|
||||
to show the code with followed by the result so you can truly see the magic.
|
||||
|
||||
## Judges' remarks:
|
||||
|
||||
Your compiler must parse
|
||||
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
clear
|
||||
echo "$ cat westley.c"
|
||||
cat westley.c
|
||||
|
||||
sleep 1
|
||||
|
||||
echo "$ cc westley.c -o westley"
|
||||
cc -std=gnu89 -Wall -Wextra -pedantic -Wno-error -Wno-implicit-function-declaration -Wno-return-type -O3 westley.c -o westley 2>/dev/null
|
||||
|
||||
echo "$ ./westley"
|
||||
./westley
|
||||
|
||||
echo
|
||||
@@ -460,6 +460,9 @@ was fixed by Misha Dynin, based on the judges' remarks, so that this would work
|
||||
with modern C compilers. We encourage you to try the alternate version to see
|
||||
what happens with current compilers! See the README.md files for details.
|
||||
|
||||
Cody added the [demo.sh](1988/westley/demo.sh) script to show the magic of the
|
||||
entry as seeing the code with the result at once is far more beautiful.
|
||||
|
||||
|
||||
## [1989/fubar](1989/fubar/fubar.c) ([README.md](1989/fubar/README.md]))
|
||||
|
||||
|
||||
Reference in new issue
Block a user