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

Username:   Password: 
 RegisterRegister   
 Binary Subtraction
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Pa|2a|)oX




PostPosted: Sun Feb 20, 2005 11:00 am   Post subject: Binary Subtraction

This program took me a shorter time to make because I knew what I was doing now.

This uses ones and twos compliment to subtract digits, and as so is inherently only able to subtract a maximum of 7 bits (127 in decimal).

No shortcuts, and this one is relatively well error trapped, it will tell you if you overflowed, and if you entered a wrong answer of some sort. The binary input section is not error trapped, only 1s and 0s may be inputed or it will crash.

Thanks



Final Subtraction.t
 Description:

Download
 Filename:  Final Subtraction.t
 Filesize:  11.38 KB
 Downloaded:  226 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Sun Feb 20, 2005 11:56 am   Post subject: (No subject)

its pretty good although errortrap would have been nice
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 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: