Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 21st, 2004, 12:56 AM   #1
memodoring
Newbie
 
Join Date: Oct 2004
Posts: 1
Rep Power: 0 memodoring is on a distinguished road
I was wondering if someone knew if it was posible tu multiply two monadic(made up of only "ones" e. 11111 = 5 and 111111 = 6) numbers using only two stacks.

I know it's kinda weid but any help will be greatly appreciated
memodoring is offline   Reply With Quote
Old Oct 21st, 2004, 1:55 AM   #2
Daggerhex_Flynn
Programmer
 
Join Date: Oct 2004
Location: Canada
Posts: 82
Rep Power: 5 Daggerhex_Flynn is on a distinguished road
Hmmm, use Mono < www.go-mono.com >.

I'm just kidding, but maybe you can provide more context for your question. Are you asking if you can add the contents of two arrays?
Daggerhex_Flynn is offline   Reply With Quote
Old Oct 21st, 2004, 8:54 AM   #3
mici
Programmer
 
Join Date: Oct 2004
Posts: 67
Rep Power: 5 mici is on a distinguished road
I think you ought to ask this question in the ASM forum.
__________________
coffee is my heroin.
mici is offline   Reply With Quote
Old Oct 21st, 2004, 10:15 AM   #4
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 579
Rep Power: 5 Benoit is on a distinguished road
I think he is asking how to multiply the number of 1's...

11111 = 5
111111=6

111111
111111
111111
111111
111111 =30
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Oct 21st, 2004, 10:43 AM   #5
mici
Programmer
 
Join Date: Oct 2004
Posts: 67
Rep Power: 5 mici is on a distinguished road
????
11111*111111=

or what?
__________________
coffee is my heroin.
mici is offline   Reply With Quote
Old Oct 21st, 2004, 3:04 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You could just count the number of 1s in each string using a loop, multiply the numbers together, and change 'em back into a string of ones...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:15 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC