I/O Reference with H


H contains a number of functions (sometimes called methods) that simplify input, output, and graphics. Here is a summary of the methods available:

You can find the source code in the downloaded files for CS 5 in the H.java and G.java files inside the source_code folder of each problem. However, unless you're trying to extend the available capabilities, it's probably easier to use these reference pages. And if anything isn't working for you, please let us know at dodds@cs.hmc.edu or bthom@cs.hmc.edu

Here is a summary of what is available. In these examples, x can be a variable of almost any type. N is an integer. d is a double-precision value.