This tutorial solves the following problem: the user wants to print to a printer attached to another Mac.
Open the System Preferences
Click on the Apple menu at the top left corner of your screen, then click on "System Preferences"
Open Print & Fax
Locate and click on this icon
Turn on Sharing
(1) Click on the printer you want to share, then (2) Turn on the share check box.
On the other computer, add a printer and you will find this printer in the list of shared printers.