Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Binary multiplication...
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Andy




PostPosted: Mon Feb 21, 2005 3:41 pm   Post subject: (No subject)

if i came off sounding insulting then i appologize, ssr is right, im not here to make fun of people. i was simply suggesting that your program can be done in a more efficient manner
Sponsor
Sponsor
Sponsor
sponsor
Pa|2a|)oX




PostPosted: Mon Feb 21, 2005 7:16 pm   Post subject: (No subject)

Thank you for the apology.

I totally agree that the program can be snipped to at least half its size by doing a general case where I switch variables around sintead of having a case by case structure. It's the same with my other programs, I just made these programs in about 5 hours each and by the end I just wanted to get it over with.

Thanks, right now I'm working on the division, something tells me I'm not going to be able to finish it. Oh well.
Andy




PostPosted: Tue Feb 22, 2005 4:11 pm   Post subject: (No subject)

for your program, do you have to everything in base 2? cant you convert it to base 10, do your stuff then convert back? also 5 hrs is a long time... i never spend more than 4 hrs on my compsci projects (except finals) ... even 1000 line ones... also, u ever heard of recursion?
Pa|2a|)oX




PostPosted: Tue Feb 22, 2005 5:55 pm   Post subject: (No subject)

Yes, it has to be in base 2. I haven't heard of recursion no, care to elaborate?
Andy




PostPosted: Tue Feb 22, 2005 6:13 pm   Post subject: (No subject)

basicly its a function or program that recalls it self each time until the final value is computed... you can use it to do your binary addition/multiplication/subraction/division easily since you basicly do the same procedure each time... go look up on it in the tutorials... then post some attempts and i'll help you do the rest
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: