Page 1 of 1

Plz help me to "BigIntegers"

Posted: Thu Oct 27, 2005 9:12 pm
by Abar_Sabel
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:

Posted: Tue Nov 01, 2005 6:03 am
by Quantris
Looks a lot like homework to me...

Posted: Tue Nov 01, 2005 6:32 am
by Abar_Sabel
Quantris wrote:Looks a lot like homework to me...

What to do every week we have like that home work

Posted: Tue Nov 01, 2005 1:38 pm
by Dominik Michniewski
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 :)

Posted: Wed Nov 02, 2005 1:28 am
by Quantris
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?

Posted: Wed Nov 02, 2005 2:21 am
by little joey
He who is unguilty throweth the first stone.
If you never frauded with your homework, Quantris, you must have a halo.
And then:
I want ur help to write this program using Microsoft Visual C++ 6.0 language>
he asked for help not for someone making his homework.

Posted: Wed Nov 02, 2005 4:14 am
by Quantris
I'm aware that you don't know me, but I can assure you that I never have "frauded" with my homework.

I realise that he wrote "help" but it certainly seemed to me that he was wanting more than that. Of course my mistrust is possibly erroneous, in which case I apologise.

Posted: Wed Nov 02, 2005 7:24 pm
by Zuberul
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.