Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Number theory

Name: Anonymous 2011-01-29 4:05

What is a good way of doing multiplication function in C++ for a unit list-based numeric system?
Example: 105 = [1][2][3]

I was thinking something like this:
>LHS * RHS
>set iterators to least significant digit (LSD)
>for(RHS; RHS != end (MSD); ++RHS)
>----for(LHS; LHS != end (MSD); ++LHS)
>---------A * B

any better thoughts?

Name: Anonymous 2011-01-29 7:46

C++ = autism. Use Haskall, it takes one line of code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List