Jump to content
Sign in to follow this  

adding 2 int togeter to form a whoel anumber

Recommended Posts

i got 1 problem..

can someone help me wit the logic?




Money Money ::operator+(const Money &rhs)const



Money temp;


temp.a = a+rhs.a;

temp.b = b+rhs.b;


return temp;






i got 2 number e.g 6.2 and 3.8

6 is int a

2 is int b


3 is int a

8 is int b


how can i add them up so that they become 10?


anyone can help?




where the red fern grows

online stock trading

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.