Edit a new document named Makechange.java with UltraEdit, the content directly copy the code below the book. Then start the command prompt environment (CMD), to the corresponding directory, enter:
Javac Makechange.java
You can compile. enter:
Java Makechange.java
Optional can be performed. However, I have to first grasp my grandmother here, because this program needs to use a TIO package (Package), which is equivalent to the library file in C, but this TIO is not a standard package file included in J2SE, so compile I will report an error. There is no such file in the Source code in the book, so I want to use this file, I can only knock myself according to Appendix C. I don't plan to knock. As for other things in the program, you can understand. Since Java and C have similar places, you can refer to Appendix E in the book. On the FTP mentioned in the book, you can find a compressed file called jbd.zip. There is a TIO package. I didn't look carefully after downloading. I just saw the TIO directory above the ftp. He is a grandmother. The wrong monster is good. I repent, repentance ...