While a Router would be my first choice as well you can do this with 2 LAN Cards on one computer where you directly plug in the Cable Modem and then share the connection from there.
All you have to do is feed one LAN port with the Cable Modem and then the other can use a Crossover or a simple switch with conventional CAT5 leads. I prefer the latter as I don't like Crossover cables and if you have a Gigabite LAN built into your system already you'll have to use another Gigabite LAN Card and a Switch with CAT5/6 Cables as you can not use a 10/100 T Base and Gigabite LAN connection in the same computer they cause hardware problems and Crossover cables don't work at all well with Gigabite LAN Connections.
Once you have the hardware setup all you need do is run the Network Setup Wizard first on the computer directly attached to the Cable Modem and tell it that it connects directly to the Internet and then after that is finished go to the other computer and run the Network Setup Wizard on that telling it that it connects to the Internet through another computer or Residential Gateway to have a working Internet connection between both computers sharing the one connection.
If you want to share Printers & Files you'll need to enable File & Printer sharing while you are running the Network Setup Wizard and make sure that both computers are on the same Workgroup.
Col