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

Pages: 1-

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.

Name: Anonymous 2011-01-29 7:47

Haskal = dead dog. Use Lisp, you'll enjoy every character you write.

>>2
mailto:sagd
Nice typo.

Name: Anonymous 2011-01-29 8:41

>good way of doing multiplication function in C++
x*y
Everything else is bloatware

Name: Anonymous 2011-02-03 10:03

hmmm this seems relevant, bump.

Name: Anonymous 2011-02-03 16:03

>>3
What typo?

Name: My other sage is a 2011-02-03 16:39

Name: My other faggot is a 2011-02-03 16:43


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