Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Input

Sydrogen provides input through Input.

Integer Input

Int Value = Input(Int);

This reads input as a string and parses it as an integer. An input that cannot be parsed as an integer produces an input error.

Floating-Point Input

Float Value = Input(Float);

This reads input as a string and parses it as a floating-point value. An input that cannot be parsed as a floating-point value produces an input error.

String Input

Weld Value = Input();

This reads a string from standard input.

The current implementation uses standard C input facilities internally.


← Previous Next →