Hi every body .
I want ur help to write this program using Microsoft Visual C++ 6.0 language>
*************************
Write a C++ program to manipulate an integer of at the most 20 digits. To write such a program you have to do at least following things:
Plz help me to "BigIntegers"
Moderator: Board moderators
-
- New poster
- Posts: 2
- Joined: Thu Oct 27, 2005 9:02 pm
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
Search this board for BigInteger class. As I correct remember, someone keep post with such code (and more futures that you need).
Best regads
DM
PS. I think, that it isn't fair to ask someone else for writing your homework. By the way: writing such program takes (with such limited functionality) no more than half a day. Bigger challenge is writing routine to dividing two BigInteger numbers
of course if you want to divide to numbers of any length 
Best regads
DM
PS. I think, that it isn't fair to ask someone else for writing your homework. By the way: writing such program takes (with such limited functionality) no more than half a day. Bigger challenge is writing routine to dividing two BigInteger numbers


If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
Born from ashes - restarting counter of problems (800+ solved problems)
If I understand your post correctly (Abar_Sabel), then I've got no sympathy...just because you feel you can't handle all your homework doesn't at all justify asking others to do it.
BTW, it would be totally different (at least, in my opinion) if you had tried to do your assignment, gotten stuck on something, and posted to ask for help with fixing code that you had written. But I suppose that would actually take some effort, right?
BTW, it would be totally different (at least, in my opinion) if you had tried to do your assignment, gotten stuck on something, and posted to ask for help with fixing code that you had written. But I suppose that would actually take some effort, right?
-
- Guru
- Posts: 1080
- Joined: Thu Dec 19, 2002 7:37 pm
hi
actually u dont need a compact biginteger class found & discussed in the board.
u need a structure with only addition function.
so declare a structure(take help from ur c++ book) with the variables.
take input as a string.
& for each character in the string subtruct '0' to get the desired number.
then do the addition in paper pencil method & increase size accordingly.
simple string manipulation no other tricks.
good luck.
actually u dont need a compact biginteger class found & discussed in the board.
u need a structure with only addition function.
so declare a structure(take help from ur c++ book) with the variables.
take input as a string.
& for each character in the string subtruct '0' to get the desired number.
then do the addition in paper pencil method & increase size accordingly.
simple string manipulation no other tricks.
good luck.