declare a hugo integer by array or string.
Please help me!
concavang 0 Newbie Poster
Recommended Answers
Jump to Post> when i declare, has notice : "do'nt enought memory"
So post your attempt then, so it doesn't look like you're just dumping your assignment on us and expecting a polished answer on a plate (it won't happen).
Jump to PostSo where is your class?
> Create a class HugeInteger that uses a 40-element array of digits to store
> integers as large as 40 digits each.class HugeInteger { private: char myInt[40]; public: };
> Provide member functions input, output, add and substract etc etc
…
Jump to PostWhy does insert need 2 params?
Why does your implementation trash memory rather than copying to the instance variable.
None of your functions are members of a class.
All 11 Replies
William Hemsworth 1,339 Posting Virtuoso
concavang 0 Newbie Poster
concavang 0 Newbie Poster
concavang 0 Newbie Poster
Salem 5,265 Posting Sage
concavang 0 Newbie Poster
Sci@phy 97 Posting Whiz in Training
Salem 5,265 Posting Sage
concavang 0 Newbie Poster
concavang 0 Newbie Poster
Salem 5,265 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.