Skip to content

Commit

Permalink
Made input page conform to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
oraqlle committed Aug 2, 2023
1 parent e4a307c commit 3a88f5e
Show file tree
Hide file tree
Showing 14 changed files with 199 additions and 229 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ book

# MacOS Meta Files
.DS_Store

# IDE Configs
.vs
.vscode
.idea
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file removed .vs/HPC-Training/v17/.wsuo
Binary file not shown.
3 changes: 0 additions & 3 deletions .vs/ProjectSettings.json

This file was deleted.

13 changes: 0 additions & 13 deletions .vs/VSWorkspaceState.json

This file was deleted.

Binary file removed .vs/slnx.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [Compilation](./chapter2/compilation.md)
- [Types & Variables](./chapter2/vars.md)
- [Printing](./chapter2/printing.md)
- [Input](./chapter2/input.md)
- [Arrays & Strings](./chapter2/array.md)
- [Control Flow](./chapter2/ctrl-flow.md)
- [Loops](./chapter2/loops.md)
Expand Down
192 changes: 192 additions & 0 deletions src/chapter2/input.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/chapter2/printing.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ printf(char* fmtstring, ...);
> **Note:**
>
> - Ignore the use of `char*` for now.
> - `printf()` is that it doesn't pad the end if the output string with a newline so you will have to manually provide it. The newline character is `'\n'`. The backslash is a special character that indicates the proceeding character is "escaped". Escaped characters have special meanings for string and character data.
> - `printf()` is different to `puts()` in that it doesn't pad the end if the output string with a newline so you will have to manually provide it. The newline character is `'\n'`. The backslash is a special character that indicates the proceeding character is "escaped". Escaped characters have special meanings for string and character data.
> If the format string doesn't have any positional arguments then `printf()` will just print the string like `puts()`.
> `printf()` is not able to print data of any kind without a format string ie. `printf(10)` would fail to compile.
Expand Down
212 changes: 0 additions & 212 deletions src/chapter2/scanf.md

This file was deleted.

0 comments on commit 3a88f5e

Please sign in to comment.