RSS Forums RSS
Please support our C advertiser: Programming Forums
Views: 877 | Replies: 2
Closed Thread
Join Date: Mar 2007
Posts: 13
Reputation: roby4eldiablo is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
roby4eldiablo roby4eldiablo is offline Offline
Newbie Poster

Help Operation on Binary number, Need source code for elementar operation (+-*/)

  #1  
Mar 15th, 2007
Hi all, i'm making a client-server concurrent in C.
the client send me 2 binary number and an operator.
I'll must send him the result and if there's overflow, underflow.

i have made all the initial part of setting the server, children pool and so on.

i receive 2 binary number, each one is on 1 byte.

i store the number into socket buffer (it's a string) and later i sscanf the buf and take out the numbers.

the client give me the operator (+-*/) and the 2 numbers,
i think of making a switch analising the operator and make the opportune operation.

if someone can give me the source of binary operation in C i'm so happy.
because this homework isn't little, and this part is only a little part. thanks in advance.
Last edited by roby4eldiablo : Mar 15th, 2007 at 12:50 pm.
AddThis Social Bookmark Button
 
Join Date: Sep 2004
Posts: 6,565
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 31
Solved Threads: 497
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Operation on Binary number, Need source code for elementar operation (+-*/)

  #2  
Mar 15th, 2007
>because this homework isn't little, and this part is only a little part.
Rationalize cheating however you want, but we won't spoonfeed you.
I'm here to prove you wrong.
 
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Operation on Binary number, Need source code for elementar operation (+-*/)

  #3  
Mar 15th, 2007
friend Complex operator+(Complex &operand);
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:40 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC