Plz help me to "BigIntegers"

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
Abar_Sabel
New poster
Posts: 2
Joined: Thu Oct 27, 2005 9:02 pm

Plz help me to "BigIntegers"

Post by Abar_Sabel » Thu Oct 27, 2005 9:12 pm

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:

Quantris
Learning poster
Posts: 80
Joined: Sat Dec 27, 2003 4:49 am
Location: Edmonton AB Canada

Post by Quantris » Tue Nov 01, 2005 6:03 am

Looks a lot like homework to me...

Abar_Sabel
New poster
Posts: 2
Joined: Thu Oct 27, 2005 9:02 pm

Post by Abar_Sabel » Tue Nov 01, 2005 6:32 am

Quantris wrote:Looks a lot like homework to me...

What to do every week we have like that home work

Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post by Dominik Michniewski » Tue Nov 01, 2005 1:38 pm

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 :)
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)

Quantris
Learning poster
Posts: 80
Joined: Sat Dec 27, 2003 4:49 am
Location: Edmonton AB Canada

Post by Quantris » Wed Nov 02, 2005 1:28 am

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?

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey » Wed Nov 02, 2005 2:21 am

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.

Quantris
Learning poster
Posts: 80
Joined: Sat Dec 27, 2003 4:49 am
Location: Edmonton AB Canada

Post by Quantris » Wed Nov 02, 2005 4:14 am

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.

Zuberul
New poster
Posts: 28
Joined: Sun Oct 24, 2004 9:46 pm
Location: dhaka
Contact:

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

Post Reply

Return to “C++”