Full Code Listing Up to the "Use ncurses to Draw the Images" Page
Full Code Listing Up to the "Use ncurses to Draw the Images" Page
Return back to the "Use ncurses to Draw the Images" Page
Notice that in the "jack.rs" and "coalcar.rs" files I'm using a use crate::*;
line, whereas in the "d51.rs" file I'm just putting that path where it's needed within the code. Either method is acceptable, but it's probably best to do things in a consistent manner throughout a project. I've only done it this inconsistent way to demonstrate both methods.
Return back to the "Consolidate Drawing Code" page.