Pure Programmer
Blue Matrix


Cluster Map

Project: Hexadecimal Filter with Byte Count

Write a filter program that converts the input stream from bytes to hexadecimal representation. Always print two heaxadecimal digits per byte separated by a space. Print 32 bytes per line with the beginning byte count (in hexadecimal) at the start of each line.

Output
$ rustc HexadecimalFilterByteCount.rs error[E0425]: cannot find value `cin` in this scope --> HexadecimalFilterByteCount.rs:10:10 | 10 | binmode(cin); | ^^^ not found in this scope error[E0425]: cannot find function `binmode` in this scope --> HexadecimalFilterByteCount.rs:10:2 | 10 | binmode(cin); | ^^^^^^^ not found in this scope error[E0425]: cannot find function `getbyte` in this scope --> HexadecimalFilterByteCount.rs:14:8 | 14 | while getbyte(c) { | ^^^^^^^ not found in this scope error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0425`. $ rustc HexadecimalFilterByteCount.rs error[E0425]: cannot find value `cin` in this scope --> HexadecimalFilterByteCount.rs:10:10 | 10 | binmode(cin); | ^^^ not found in this scope error[E0425]: cannot find function `binmode` in this scope --> HexadecimalFilterByteCount.rs:10:2 | 10 | binmode(cin); | ^^^^^^^ not found in this scope error[E0425]: cannot find function `getbyte` in this scope --> HexadecimalFilterByteCount.rs:14:8 | 14 | while getbyte(c) { | ^^^^^^^ not found in this scope error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0425`. $ rustc HexadecimalFilterByteCount.rs error[E0425]: cannot find value `cin` in this scope --> HexadecimalFilterByteCount.rs:10:10 | 10 | binmode(cin); | ^^^ not found in this scope error[E0425]: cannot find function `binmode` in this scope --> HexadecimalFilterByteCount.rs:10:2 | 10 | binmode(cin); | ^^^^^^^ not found in this scope error[E0425]: cannot find function `getbyte` in this scope --> HexadecimalFilterByteCount.rs:14:8 | 14 | while getbyte(c) { | ^^^^^^^ not found in this scope error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0425`.

Solution